|
You could do this for the first hit to the site by checking the HTTP_REFERER, but as soon as they click around the site the referer would no longer be the .net address but the .com address. The only solution that springs to mind would be setting a cookie on the users machine if the refererer is the .com address and checking the cookie in your scripts. It is worth baring in mind though that there is new european legislation about the use of cookies, that could potentially make this a very dark grey area. The only other solution is to have some reference to the language stored in the url, such as using a different sub-domain etc.
|