I have 2 domains www.ritualnet.pt www.fadingwaysmusic.com both \"pointing\" to the same IP address.
How do I test the domain that the browser is requesting in order to redirect to www.ritualnet.pt/fadingways/ when people type fadingwaysmusic.com ?
Thanks,
André
If you can't get virtual hosting to work, use HTTP/1.1 headers on Apache:
$headers = getallheaders(); if ($headers["Host"] == "www.fadingwaysmusic.com") header("Location: www.ritualnet.pt/fadingways/");