Page 1 of 1

How to redirect URL

Posted: Tue Nov 29, 2005 3:35 pm
by myleow
I have a URL pftrojans.com and pftrojans.olinesports.com

How do i do it so that whenever anyone type in pftrojans.com or http://www.pftrojans.com it will redirect their browser to pftrojans.olinesports.com?

Because there are several hundred files that i need to do this on, is there an easier way to have it done in httpd.conf (Virtual Host) with mod_rewrite?

I am completely noobish with mod_rewrite. So could someone show me the light?

Thank you in advance.

Regards
Mian

Posted: Tue Nov 29, 2005 3:52 pm
by foobar
Ask your webhost for domain-redirecting. By far the easiest solution.

Posted: Tue Nov 29, 2005 5:34 pm
by Chris Corbyn
Why not just set the A Records for both domains to point to the same IP?