Title: Redirect loop using alongside Polylang
Last modified: September 17, 2019

---

# Redirect loop using alongside Polylang

 *  Resolved [ricardodacp](https://wordpress.org/support/users/ricardodacp/)
 * (@ricardodacp)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/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` 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](https://wordpress.org/support/users/ip2location/)
 * (@ip2location)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/redirect-loop-using-alongside-polylang/#post-11943800)
 * 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.

 * ![](https://ps.w.org/ip2location-redirection/assets/icon-128x128.png?rev=2121920)
 * [IP2Location Redirection](https://wordpress.org/plugins/ip2location-redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ip2location-redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ip2location-redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/ip2location-redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ip2location-redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ip2location-redirection/reviews/)

## Tags

 * [IP](https://wordpress.org/support/topic-tag/ip/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * 1 reply
 * 2 participants
 * Last reply from: [IP2Location](https://wordpress.org/support/users/ip2location/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/redirect-loop-using-alongside-polylang/#post-11943800)
 * Status: resolved