When you type www.google.com,it will take you to www.google.co.in or www.google.co.uk based on your country.Similarly I want to do for my web site.Can anyone give me simple and easiest way to do this?

first you need to have a database / data file with IP - Country mapping data

then every time a request for your page comes in you need to query the request for its ip address and use your mapping database / file to determine where to redirect to.

Hope this helps

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.