I need to be able to capture the URL which the user has entered so that I may direct them to a specific page.
e.g. website is www.mainwebsite.com
However, I have several aliases for this website.
If user enters www.specificsite.com (one of several aliases), I want to be able to capture that URL as a variable and open a specific page.
In this way, depending on the URL (alias) entered, I can direct visitors to specific pages on the site.
Is HTTP_REFERER the best way of doing this. If so,
what would be the code
Thanks for your help.