What I'm looking for is let say if my visitor is from US the it will go to the default
mywebsite.com
if from UK
mywebsite.com/uk
from Bangladesh
mywebsite.com/bd
and so on. If i don't have specific code for certain countries traffic from those countries will just go to he default page.
I can get the ip address by
$_SERVER['REMOTE_ADDR'];
Now, I want to match it with country specific ip addresses. By writing if else statement.
But I can't find any library function that contains ip list or something. Can any one advice me here.