Re: SubDomain Redirect

From: Date: Sat, 23 Jun 2001 10:28:40 +0000
Subject: Re: SubDomain Redirect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54969@lists.php.net to get a copy of this message
"Jon Shoberg" <jshoberg@cbd.net> wrote: > Using Apache ... > > Any thoughts no how I can create a link: > > http://cars.mydomain.com and have it redirect to > http://www.mydomain.com/index.php?id=cars > > and > > http://www.mydomain.com/cars and have it redirect to > http://www.mydomain.com/jump.php?id=cars without messing up my > default in the top of your index page write something like: switch(StrToUpper($HTTP_HOST)){ case "WWW.CARS.MYDOMAIN.COM"; case "CARS.MYDOMAIN.COM"; header("Location: http://www.mydomain.com/index.php?id=cars"); break; } and so on -- Henrik Hansen

« previous php.general (#54969) next »