Title: Exclude admin area
Last modified: December 8, 2022

---

# Exclude admin area

 *  Resolved [robineero](https://wordpress.org/support/users/robineero/)
 * (@robineero)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/exclude-admin-area-2/)
 * I see it asked here many times but never answered 🙂 How to redirect whole site
   except wp-* area.
 * I have done 301 redirect for `^/.*` which redirect everything.
 * I have added additional “do nothing” redirect for `^/wp-(.*)` (seemed to match
   wp-admin and wp-login on regex101) but it does not seem to work and still redirects.
 * If I log out of the site I will probably not get in again.
    -  This topic was modified 3 years, 6 months ago by [robineero](https://wordpress.org/support/users/robineero/).

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

 *  Thread Starter [robineero](https://wordpress.org/support/users/robineero/)
 * (@robineero)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/exclude-admin-area-2/#post-16272135)
 * I figured out that wp-login.php is not redirected and I still manage to get into
   the wp-* part of the website. This is good.
 * Still, I usually type in wp-admin, which usually redirects to wp-login.php but
   at the moment this redirection does not seem to work for some reason. I also,
   just now, found out that there is /login path in WP 🙂
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/exclude-admin-area-2/#post-16272766)
 * It’s been answered quite a few times before. Your best option is to use the site
   relocate:
 * [https://redirection.me/support/site-options/](https://redirection.me/support/site-options/)
 * Then you don’t need to do anything. Otherwise your do nothings have to be a lower
   position then the global redirect. wp-admin is never redirected by the plugin.
 *  Thread Starter [robineero](https://wordpress.org/support/users/robineero/)
 * (@robineero)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/exclude-admin-area-2/#post-16272814)
 * It is not the answer. Therefore I asked it again. I want to redirect, I do not
   want to relocate (because I do not relocate the site).
 * > wp-admin is never redirected
 * This is not correct. If you open, for example [bjjblog.eu/wp-admin/](https://bjjblog.eu/wp-admin/)
   then you see that by default some kind of redirect takes place to wp-login.php.
   This redirect in my case is ignored (or overridden by `^/.*`).
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/exclude-admin-area-2/#post-16272819)
 * Relocate is the same as redirect, it’s just a term to describe doing a site redirect
   that excludes WordPress things. Where are you redirecting the entire site to?
 * > This is not correct.
 * Redirection is not performing that redirect. WordPress does this by default.

Viewing 4 replies - 1 through 4 (of 4 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/exclude-admin-area-2/#post-16272819)
 * Status: resolved