Forum Moderators: phranque

Message Too Old, No Replies

Different Pages for Different Countries

Different Pages for Different Countries

         

gordgoodfellow

1:01 pm on Jan 22, 2006 (gmt 0)

10+ Year Member



Is there any way I can put code on my site to automatically show a pre-determined home page which is different depending on which country the visitor lives in? I don't mean cloaking or anything like that to fool search engines. I mean having one page displaying (for example) information which is relevant to a UK audience only displaying on a page seen by people in the UK, and another page only displaying information in the US which is relevant to people living in the US.

The obvious way would be to put a button 'Click here if you live in the UK/US' but that's not the first thing I want my visitors to actually see. Is there a way that I can have this done automatically - perhaps by referencing the visitor's IP address or something similar?

Your thoughts would be greatly appreciated.

DanA

4:27 pm on Jan 22, 2006 (gmt 0)

10+ Year Member



With php, you can use the free database and the code from [ip-to-country.webhosting.info...]
There are other databases that you can use
[google.com...]

gordgoodfellow

6:30 pm on Jan 22, 2006 (gmt 0)

10+ Year Member



Thanks, DanA. That's really useful.