Title: Redirection issue
Last modified: January 30, 2020

---

# Redirection issue

 *  Resolved [shihtzurescue](https://wordpress.org/support/users/shihtzurescue/)
 * (@shihtzurescue)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-27/)
 * Hi,
 * I have configured the plugin to restrict a certain page (slug: home-visit-form)
   to Volunteer level which syncs with subscribers I manually add. We only have 
   2 user roles – Admin and subscribers, and no one can register.
 * If a site visitor inputs a partial slug (home-visit) for that page, redirection
   happens as if they has entered the full slug which shows up in the redirected
   URL as %2Fhome-visit-form%2F.
 * Is this behavior expected?
 * Thank you for any insight.
    -  This topic was modified 6 years, 4 months ago by [shihtzurescue](https://wordpress.org/support/users/shihtzurescue/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-27/#post-12396067)
 * Thank you for reporting this.
 * Do you mean that if a user directly enters home-visit in the browser, they are
   redirected to the login page? Does “home-visit” exist on your site?
 * If not, this is likely due to the way WordPress handles routing:
    [https://developer.wordpress.org/reference/functions/redirect_canonical/](https://developer.wordpress.org/reference/functions/redirect_canonical/)
 * >  Will also attempt to find the correct link when a user enters a URL that does
   > not exist based on exact WordPress query. Will instead try to parse the URL
   > or query in an attempt to figure the correct page to go to.
 * So what happens is that internally, WordPress redirects the user to “home-visit-
   form”, and RUA then redirects the user again because they are not authorized 
   to view that page.
 * I hope this helps!
 *  Thread Starter [shihtzurescue](https://wordpress.org/support/users/shihtzurescue/)
 * (@shihtzurescue)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-27/#post-12398530)
 * Thank you for your detailed explanation! home-visit does not exist.

Viewing 2 replies - 1 through 2 (of 2 total)

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

 * ![](https://ps.w.org/restrict-user-access/assets/icon-256x256.png?rev=1815922)
 * [Restrict User Access - Ultimate Membership & Content Protection](https://wordpress.org/plugins/restrict-user-access/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-user-access/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-user-access/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-user-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-user-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-user-access/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [shihtzurescue](https://wordpress.org/support/users/shihtzurescue/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-27/#post-12398530)
 * Status: resolved