View Single Post
Old 05-27-2008, 02:04 AM   #104 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 Posts
Quote:
Originally Posted by dcb View Post
...can we put a "smart" redirector in it's place?
I don't have any php handy, but it would go something like this:

Code:
point forum.ecomodder.com* to point to an index.php file that does the following (and or add it to the file not found index):

look at the request headers, figure out the complete url string:
i.e. http://forum.ecomodder.com/forumdisplay.php/opengauge-mpguino-fe-computer-26.html

if the url string starts with "http://forum.ecomodder.com/forumdisplay.php/"
replace "http://forum.ecomodder.com/forumdisplay.php/"  with "http://ecomodder.com/forum/" and leave the rest of the string in place.

Set the location header to the new string.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 05-27-2008 at 09:58 AM..
  Reply With Quote