Redirecting homepage to specific page
Our company is changing names and websites. I need to figure out a way to redirect the old website home page url http://www.oldsite.com to a subpage of the new site. Easy you say, wait, here's the catch:1) All URLS used on the old site must map to the same URLS (but just with a different domain name) on the new site. This means the easiest way is to simply change the IP addres of the oldsite to the newsite IP. So we can't simply just to a META redirect on just the home page of the old site.
2) When someone first hits the site, we read and record where they came from. Therefore we cannot use some type of META redirect or smart redirect script to do this as then the newsite will consider everyone will be coming from the oldsite, not from the search engine or what have you.
I'm guessing the only way to accomplish this is with some creative apache configuring. What I want in summary:
If URL is www.oldsite.com redirect to www.newsite.com/subpage_script.cgi
If URL is www.oldsite.com/something_other_than_homepage redirect to the same URL but on www.newsite.com
Preserve original referrer information.