• Resolved robineero

    (@robineero)


    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 2 years, 3 months ago by robineero.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter robineero

    (@robineero)

    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

    (@johnny5)

    It’s been answered quite a few times before. Your best option is to use the site relocate:

    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

    (@robineero)

    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/ 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

    (@johnny5)

    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.