Redirect loop using alongside Polylang
-
Hi, I was trying to redirect users to the right language homepage based on their IP location. I have 4 languages created with Polylang plugin; my default homepage is pt_BR and the other 3 languages have different pages. These are their URL’s:
pt_BR:
www.homepage.com
pt_PT:www.homepage.com/pt
en:www.homepage.com/en
huwww.homepage.com/huI’m using [home page] redirection like this:
From Destination
brazil: [home page] -> Home page
portugal: [home page] -> Home page pt
english: [home page] -> Home page en
hungary: [home page] -> Home page huThe problem is, since the [home page] is also the pt_BR homepage, if I’m in Portugal and try to change the sites language to pt_BR, I’ll be redirected to /pt again in a loop.
Is there any way I can accomplish this using ip2location redirection?
The topic ‘Redirect loop using alongside Polylang’ is closed to new replies.