How to redirect URL

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
myleow
Forum Contributor
Posts: 194
Joined: Mon Jun 21, 2004 7:05 pm
Location: California

How to redirect URL

Post 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
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

Ask your webhost for domain-redirecting. By far the easiest solution.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Why not just set the A Records for both domains to point to the same IP?
Post Reply