Two domains on one address
Posted: Tue Feb 08, 2005 2:25 pm
Hi,
I registered today a new domain for my account at my provider and want to use that one as the main domain in the future. But I don't want to loose the requests which are sent to the first one.
I have now the idea to forward those requests to the new domainname,
Example:
http://www.example1.com/archive/1-Article.html
should be then forwarded to
http://www.example2.com/archive/1-Article.html
The location of example1.com is the same as example1.com. The same software and content should then be used. I know that I have to modify the index.php to check which domain is accessed. But I don't know too much how I can set the cheat in the code. Maybe one of you can help me.
Many thanks in advance, Thomas
I registered today a new domain for my account at my provider and want to use that one as the main domain in the future. But I don't want to loose the requests which are sent to the first one.
I have now the idea to forward those requests to the new domainname,
Example:
http://www.example1.com/archive/1-Article.html
should be then forwarded to
http://www.example2.com/archive/1-Article.html
The location of example1.com is the same as example1.com. The same software and content should then be used. I know that I have to modify the index.php to check which domain is accessed. But I don't know too much how I can set the cheat in the code. Maybe one of you can help me.
Many thanks in advance, Thomas