"Jon Shoberg" <[EMAIL PROTECTED]> 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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to