• Resolved ricardodacp

    (@ricardodacp)


    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
    hu www.homepage.com/hu

    I’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 hu

    The 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?

Viewing 1 replies (of 1 total)
  • Plugin Author IP2Location

    (@ip2location)

    Hi,

    Please create multiple pages for different language. You cannot redirect to same home page.

Viewing 1 replies (of 1 total)

The topic ‘Redirect loop using alongside Polylang’ is closed to new replies.