PDA

View Full Version : Domain Redirection


bspahr
09-25-2003, 10:26 PM
Let's say I have a website www.mydomain.com
Then I register another domain www.mydomain2.com

I want to redirect www.mydomain2.com to folder that
is on www.mydomain.com

So www.mydomain2.com redirects to www.mydomain.com/newsite/

How would I do this?

liorean
09-25-2003, 10:36 PM
What server are you on? Do you use the same server for both domains or separate servers?

This could easily be done with mod_rewrite in the .htaccess file on Apache, for instance.

bspahr
09-25-2003, 10:42 PM
Both sites are on the same server which is IIS.

I have created the new site in a sub folder of my main site and want to redirect the new domain name to this folder.

SDP2006
09-26-2003, 02:05 AM
Just make the index of www.mydomain2.com redirect to www.mydomain.com/newsite

If you have PHP, create index.php in www.mydomain2.com and do this<?php
header("Location: new location here");
?>
In less than a second, it will redirect to www.mydomain.com/newsite

zoobie
09-26-2003, 07:08 AM
You can do it from your registrar or a snippet of code.
header("location: http://whatever.com");
Whatever you do, don't use meta refresh redirect...Search engines don't like these and may ban you.
I think the redirect from your domain registrar is prob the best...

StupidRalph
09-30-2003, 09:39 AM
Gosh. I was just going to recommend that meta refresh tag too! Thanks zoobie didn't know search engines ban you for that. :thumbsup:

But then again I don't use it myself:D