Forum Moderators: buckworks & webwork

Message Too Old, No Replies

How do I handle multiple domain names?

Pointing to the same site

         

u4eas

7:09 pm on Nov 23, 2004 (gmt 0)

10+ Year Member



We just started a new company, and we bought two domain names:

www.ourwidgit.com
www.ourwidgeits.com

Our company name is really "our widgets" with the s, so that is where I'm going to have the main site. But we dont want to loose traffic if people goto ourwidget.com

Whats the best way for me to set this up? A redirect? Or just point to the same IP?

Any help would be appreciated.

Cheers-

u4eas

uncle_bob

7:20 pm on Nov 23, 2004 (gmt 0)

10+ Year Member



Setup a permanent redirect (301) from the mis-spelt sites to the correct spelling (the one you want them to bookmark). Both the users and searchengines will be happier.

Joe Belmaati

7:26 pm on Nov 23, 2004 (gmt 0)

10+ Year Member



You can use a url rewrite in the root folder of widgit.com. In the root folder .htaccess file:


Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} ourwidgit
RewriteRule .* http://www.ourwidgeits.com

This should work for all requests for anything with widgit in the url, and it will redirect to widgeits.com

EDIT: Forgot to add that you need to be on an Apache server with mod-rewrite for this to work

u4eas

10:12 pm on Nov 23, 2004 (gmt 0)

10+ Year Member



Ok, Im on IIS

So I found this on 301 redirects...

In IIS Admin:
1. Browse the website you want to do the redirect for.
2. In the right pane, right click on the file you want to redirect, and click "Properties"
3. Under the "File" tab, hit the radio selection "A redirection to a URL"
4. Put the target in the "Redirect to" textarea.
5. Make sure "The exact URL entered above" and "A permanent redirection for this resource"

That should give you a 301 nicely.

Last question, can I have this 301 redirect on an IP with host headers so I dont have to waste an IP addy for it?

Cheers-

u4eas