get the country of visitor and display content based on that

Posted on 16th Feb 2014 by admin

Hello all,

I have seen that Google analytics can tell you where a visitor is coming from and I want to do something similar. But I would like to add the functionality of redirecting a user based on his location

Example:
if a users location is from the "US" I would like to redirect all the links on the site to include /us/ after the domain. If the user comes from anywhere outside the US is would like the links to be normal.

Any Ideas??

Other forums