Title: Infinite Redirect Loop &#8211; Solution
Last modified: August 21, 2016

---

# Infinite Redirect Loop – Solution

 *  [Enej Bajgorić](https://wordpress.org/support/users/enej/)
 * (@enej)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/infinite-redirect-loop-solution/)
 * Hi Ron
 * We have been experiencing a redirection loop issue in Firefox, Chrome and Safari
   for a while now. But we fixed it and wanted to share the solution.
 * We managed to fix it by replacing the using replacing the remote_login_js() with
   the following [http://pastebin.com/tw1rsQ0n](http://pastebin.com/tw1rsQ0n).
 * Basically what I think the issue was is that the browser was trying to be smart
   and was caching the redirection. So the solution is to instead of redirecting
   the user after they are logged in to the same url that is cached by the browser
   and results in another redirection. We add ?login to the end of it, which ( for
   some reason ) prevents the redirection. (‘?login’ could be any string )
 * It is not an idea solution, since the user not knowing might share the url ( 
   there is no side effect beside not a clean url) but we found it to be still better
   then the alternative. A user ending up on a white screen in an infinite loop 
   not knowing what to do.
 * Thanks again for the great plugin. Hope this solution helps someone.
 * [http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/](http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * (@wpmuguru)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/infinite-redirect-loop-solution/#post-3922195)
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘Infinite Redirect Loop – Solution’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-mu-domain-mapping.svg)
 * [WordPress MU Domain Mapping](https://wordpress.org/plugins/wordpress-mu-domain-mapping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-mu-domain-mapping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/infinite-redirect-loop-solution/#post-3922195)
 * Status: not a support question