• Resolved strarsis

    (@strarsis)


    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 4 years, 7 months ago by strarsis.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author John Godley

    (@johnny5)

    Requests to /wp/wp-admin will be redirected by WordPress unless you are logged in.

    Thread Starter strarsis

    (@strarsis)

    @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

    (@johnny5)

    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

    (@strarsis)

    @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

    (@johnny5)

    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/

    Thread Starter strarsis

    (@strarsis)

    @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

    Plugin Author John Godley

    (@johnny5)

    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

    (@strarsis)

    @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.