Heres the problem. I have 2 domain names:
mydomain.com
mydomain.co.uk
Now idealy these would point to 2 different webservers, one based in the usa and one in the uk. However the current setup is so that they both point to the same directory on the same webserver. But i would like to determine which domain name the user has used to access the website.
So if the user types in mydomain.com, american pricing ($) and american download links would be displayed.
However if the user types in mydomain.co.uk the pricing would be in £ and download/advertising links would be tailored towards a uk user.
So i would be grateful if anyone could suggest a piece of code to help me out with this problem