Multilingual Website, how to open the right page according to the country

Hey guys,

I’m creating a website in English, Portuguese and Spanish. I’ve already inserted the “hreflangs” and Google is showing the right page in the results, according to each country (I’ve been using VPN to test this).

But what I really need is when an user in Brazil, for example, type www.domain.com it automatically redirects to the Portuguese version of the website (www.domain.com/home-pt). And of course, the same for Spanish and English.

Any idea about how to solve it?

Thank you a lot!

Could this help you?
https://stackoverflow.com/questions/13857734/redirect-user-to-different-website-based-on-location-ip-address

I haven’t tested it myself, yet.

1 Like

Another idea is to redirect depending on the system language settings of the user. So that a spanish guy visiting brazil is directed to the spanish version of the site.

1 Like

Hi Jorn. I’ll test it this week. Thanks for sharing :wink:

1 Like

Hi Vincent. Any idea how can I do that? With a script?

This topic was automatically closed after 60 days. New replies are no longer allowed.