Title: Doesn&#8217;t exclude admin
Last modified: December 23, 2019

---

# Doesn’t exclude admin

 *  Resolved [strarsis](https://wordpress.org/support/users/strarsis/)
 * (@strarsis)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/doesnt-exclude-admin/)
 * So I use the regexp `^(.*)$` for redirecting all frontend URLs to another URL,
   
   but this also redirects `/admin` and `/wp/wp-admin/` as well, locking one out
   of the backend. I had to disable the plugin using `WP CLI` via shell to regain
   access. This is a roots.io Bedrock site, where the WordPress files reside in /
   wp/, it could be that the URLs to be excluded are actually hardcoded into the
   plugin instead of being determined using WordPress functions.

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/doesnt-exclude-admin/#post-12272656)
 * You can follow the instructions at [https://redirection.me/support/disable-redirection/](https://redirection.me/support/disable-redirection/)
   to disable redirects without disabling the plugin.
 * You will need to manually exclude any URLs you don’t want redirect using a ‘do
   nothing’ action.
 * [https://redirection.me/support/redirect-actions/](https://redirection.me/support/redirect-actions/)

Viewing 1 replies (of 1 total)

The topic ‘Doesn’t exclude admin’ 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/)
 * [all](https://wordpress.org/support/topic-tag/all/)
 * [exclude](https://wordpress.org/support/topic-tag/exclude/)
 * [hardcoded](https://wordpress.org/support/topic-tag/hardcoded/)
 * [path](https://wordpress.org/support/topic-tag/path/)
 * [regexp](https://wordpress.org/support/topic-tag/regexp/)
 * [roots](https://wordpress.org/support/topic-tag/roots/)
 * [url](https://wordpress.org/support/topic-tag/url/)
 * [urls](https://wordpress.org/support/topic-tag/urls/)
 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)

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