Requests to /wp/wp-admin will be redirected by WordPress unless you are logged in.
@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?
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?
@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.
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/
@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
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.
@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.