Forum Moderators: open

Message Too Old, No Replies

Redirecting to site with different name. How do you do this?

I'd like to redirect to my site when someone uses wrong ext. Please help.

         

frenzy77

6:45 pm on Sep 26, 2005 (gmt 0)

10+ Year Member


Hey guys:)

I have read that i should look into buying a couple of other domain names with the different extensions for a site. The reasoning was that it would help if someone typed in the wrong extension by mistake.

Q.1. How do you do redirect(send them) to the site if i have 3 other domains with different extensions?

Q.2. Is their an area in my webspace that allows me to type in the names and this will do the job for me?

>I'd like it so when someone accidentally types in the wrong extension, they will be sent to the site they are trying to get to.

For example:

>my site: http://www.xyzexample.com/index.html
(*other extensions for this site domain:
.org, .net, .biz)

>searcher types in http://www.xyzexample.net

>sends them to http://www.xyzexample.com

Q.3. How do you do this?

Thanks for your fellas:)
I really do appreciate your help:)
Thanks again

frenzy77

dimo414

6:20 am on Sep 27, 2005 (gmt 0)

10+ Year Member



I don't know whether or not there is an area in your webspace that will allow you to do that automaticly, however, a simple html redirect code is:

<html>
<head>
<title>Your Page Title</title>
<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"></HEAD>
<BODY>
Optional page text here.
</BODY>
</HTML>

The important part is the bit in bold, but if you just paste that entire thing (replacing the page title and optional page text bits, obviously) you can redirect to whatever website you enter into the url space. The content="0 bit shows how much time till the redirect takes place, 0 is instatanious.

Hope that helped.

us60

8:03 am on Sep 27, 2005 (gmt 0)



<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com">

You really should refrain from instantaneous refresh, a value of "0,url=..." in the tag, because that prevents the proper use of the Back button on the browser. Better if you are going to do this form of redirect to wait five to ten seconds, (numeric values of "5" to "10" in the place of the "0".

In the body of the page, place a link to the refresh destination page, in case someone has the meta refresh turned off. The seconds of delay will permit the use of the Back button as was intended.

A couple of ways you can do this with your domain name. Your xyzexample.com is hosted on a webhosting company's server. Your host's control panel gives you options on creating subdomains and redirections with your dot com name.

You buy the dot net and dot org at a $10 a year or less domain registrar, and on his control panel you create a redirect for xyzeample.net to be redirected to xyzexample.com. This information is programmed into the domain nameservers, and is subsequently sent to every dns server on the Internet.

Visitor enters xyzexample.net,
there is a dns lookup,
then the redirect to xyzexample.com is made,
the hosted site is looked up in dns and
the visitor is sent to xyzexample.com.
The visitor's browser reads "http://xyzexample.com/".

The visitor bookmarks the page, and the bookmark is pointing to the dot com as you want.

Your site is hosted on a free host at www.freesite.example.com/~mayflower/farms/1023745/ or some such ridiculously long name, you buy your dot com at the $10 registrar and either redirect it or frame it to your free site. Redirect your other names again to the dot com.

Frame urls will display your ugly-url site content inside a frame with the desired domain name in the address window. Drawbacks include that IE will always show the site with a horizontal scrollbar, and while you can edit the title and meta tags on the frameset provided by the registrar, you are still left with the search engine description of your page stating that "Your browser does not support frames." Unless your registrar offers editing of the noframes tag content!

Larry