Title: Exclude admin area
Last modified: April 16, 2020

---

# Exclude admin area

 *  Resolved [strarsis](https://wordpress.org/support/users/strarsis/)
 * (@strarsis)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-admin-area/)
 * Although the latest version of Redirections plugin is used,
    the admin area is
   not excluded. Requests to `/wp/wp-admin/` are also redirected.
 * Edit: The admin area is only excluded when the admin is logged in.
    Which is 
   technically not impossible but practically very hard to achieve, hence all admin
   area requests should be excluded.
    -  This topic was modified 6 years, 1 month ago by [strarsis](https://wordpress.org/support/users/strarsis/).

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

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-admin-area/#post-12687344)
 * Requests to /wp/wp-admin will be redirected by WordPress unless you are logged
   in.
 *  Thread Starter [strarsis](https://wordpress.org/support/users/strarsis/)
 * (@strarsis)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-admin-area/#post-12725457)
 * [@johnny5](https://wordpress.org/support/users/johnny5/): This explains the issue.
   
   Could the plugin add an exception for this, or at least add some parameter/HTTP
   header field to still be able to log into admin?
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-admin-area/#post-12725478)
 * Redirection isn’t redirecting wp-admin, it’s something that WordPress automatically
   does when you’re not logged in, and it takes you to the login page. I’m not sure
   I understand what you are asking for?
 *  Thread Starter [strarsis](https://wordpress.org/support/users/strarsis/)
 * (@strarsis)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-admin-area/#post-12725554)
 * [@johnny5](https://wordpress.org/support/users/johnny5/): I cannot log into the
   WordPress site as long as the Redirection plugin is active. The redirection is
   intentionally a wildcard redirection – but it should not lock the user out.
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-admin-area/#post-12725578)
 * Ok, so I think what you are saying is that your login page is being redirected.
   You can create a ‘do nothing’ redirect for that so it is excluded.
 * [https://redirection.me/support/redirect-actions/](https://redirection.me/support/redirect-actions/)
 *  Thread Starter [strarsis](https://wordpress.org/support/users/strarsis/)
 * (@strarsis)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-admin-area/#post-12726169)
 * [@johnny5](https://wordpress.org/support/users/johnny5/): Alright, so I added
   two `Do nothing (ignore)` rules
    (and put them before the one that redirects 
   everything) for the admin area (`/admin/` and `/wp/wp-admin/`, ignore slashes).
 * The two do-nothing rules got order numbers 2 and 3 while
    the catch-all redirect
   rule got order number 1 – hence it comes after the two other ones.
 * However, without being logged in, requests for `/wp/wp-admin/` are
    still caught
   by the catch-all rule. What am I missing?
 * Screenshot: [https://i.ibb.co/M8bjcPY/screenshot.png](https://i.ibb.co/M8bjcPY/screenshot.png)
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-admin-area/#post-12726226)
 * As mentioned above, it is WordPress that will redirect you if you are not logged
   in. You need that redirect to take you to the login page, and that is what needs
   to be excluded.
 * Also, if you use the site relocate on the Site page it will do all of this for
   you.
 *  Thread Starter [strarsis](https://wordpress.org/support/users/strarsis/)
 * (@strarsis)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-admin-area/#post-12726537)
 * [@johnny5](https://wordpress.org/support/users/johnny5/): Thanks! The Site feature
   is great. However, in this particular case, nothing should be appended to the
   target URL. Well, as an anchor maybe or GET parameter ?old=, but no actual URL
   path. It must always be the same target URL.

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

The topic ‘Exclude admin area’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

## Tags

 * [admin](https://wordpress.org/support/topic-tag/admin/)
 * [exclude](https://wordpress.org/support/topic-tag/exclude/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)
 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)

 * 8 replies
 * 2 participants
 * Last reply from: [strarsis](https://wordpress.org/support/users/strarsis/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-admin-area/#post-12726537)
 * Status: resolved