php - How to load ccTLDs domains for users of different countries
Get the solution ↓↓↓If i am going to google.com then it will open the website https://www.google.co.in/ if i'm opening it from India but if I am gooing to google.com from another country lets say UK then it will automatically redirect to https://www.google.co.uk/. I want to do similar set up for my website . And I think that it has something to do withe the .htaccess file . Correct me if i'm wrong and suggest me the ways how to achieve this in php or wordpress.
Answer
Solution:
There is no way to do this in htaccess as the only location based information you can get is the ip address. I would recommend PHP because the IP address database changes frequently.
Lookup something called GeoIP
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: the requested url was not found on this server. xampp
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.