Re: Multiple URL Redirection

From: Date: Sun, 06 Jun 2004 01:09:38 +0000
Subject: Re: Multiple URL Redirection
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-187719@lists.php.net to get a copy of this message
mpublico@globo.com wrote:
I've got a domain that is hosted at a certain host. This host allows me to create subdomains, and also to add several domains to the same account. The thing is if I add a domain like xxx.com to my yyy.com both will be directed to my index.php page. I want to know if there is a way to recognize if the user typed to the url xxx.om or yyy.com and then send it to a certain folder. I thank any word of wisdom from you guys. Rodrigo
Try looking in the values of $_SERVER on index.php to see if there is a variable that can determine which host was requested. Depending upon how this was all set up, you should be able to get something out of there. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals - www.phparch.com

« previous php.general (#187719) next »