I have a site hosted by a company running Apache virtual hosts and have a second domain parked on the first one. What I want to do is set up an index.php that reads the incoming request and directs the user to a page depending on the domain they are trying to reach. Example:
domain1.com -> domain1.html
domain2.com -> domain2.html
I know there has to be away to this with HTTP_HOST or HTTP_REFERER, but I can't figutre it out.
Could someone help?
Thanks,
Sean