Title: Redirection to
Last modified: May 9, 2019

---

# Redirection to

 *  [n1fdadmin](https://wordpress.org/support/users/n1fdadmin/)
 * (@n1fdadmin)
 * [7 years ago](https://wordpress.org/support/topic/redirection-to/)
 * We have been using this plugin successfully for some time now along with a user
   switching plugin. Our site includes a new role with more limited permissions 
   that the standard WP contributor role. Switching to users with this role worked
   great until yesterday when we upgraded to WP 5.2 and PHP 7.2. Switching to user’s
   with the contributor role still works fine after the upgrade. When we switch 
   to a user with the modified role, we get a 502 bad gateway error.
 * We use this login/logout redirection plugin and the problem with the 502 error
   centers on the fact that we use [variable]http_referer[/variable] as the login
   redirect for the role that has the problem. If we use our site’s home page instead
   of the http_referer, we do not get the 502 error.

The topic ‘Redirection to’ is closed to new replies.

 * ![](https://ps.w.org/peters-login-redirect/assets/icon-256x256.png?rev=2597671)
 * [LoginWP (Formerly Peter's Login Redirect)](https://wordpress.org/plugins/peters-login-redirect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/peters-login-redirect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/peters-login-redirect/)
 * [Active Topics](https://wordpress.org/support/plugin/peters-login-redirect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/peters-login-redirect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/peters-login-redirect/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [n1fdadmin](https://wordpress.org/support/users/n1fdadmin/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/redirection-to/)
 * Status: not resolved