[EMAIL PROTECTED] wrote:
Hi I have the following situation:
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
You can also use mod_rewrite
Untested:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?yyy\.com
RewriteRule ^(.*)$ /yyy/$1
RewriteCond %{HTTP_HOST} ^(www\.)?xxx\.com
RewriteRule ^(.*)$ /xxx/$1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php