Redirected to 404 Page (New Info)
-
I’ve discovered something interested based on my own experience being redirected to a 404 upon successful login. I was running the Wordfence Login Security Plugin, but disabled that and still encountered the issue. I have no other login-related plugins installed.
The Flow: I log in with Username/Password, I put in my 2FA code (Wordfence) and submit. I’m redirected to 404, BUT I’m logged in with a session and can, at this point, manually navigate to the WP admin successfully. So it’s logging me in correctly, but then this came to light…
The Solution: What I found when disabling your plugin was that I then encountered that pesky “Please confirm this is the correct Admin email address for the site” interstitial page. Once I had confirmed the email and cleared the step, I switched back on the plugin and the flow worked again as expected without 404.
The Conclusion: It appears those login interstitial flow pages (like the admin email confirmation page, which pop up from time to time) can get in the way of a successful, clean redirect, even if it DOES log in me and establishes session just fine. I don’t know how reproducible this is, or if there are other WP-core interstitial pages which can also block the redirection, but figured I’d mention what I discovered here in case there is any opportunity to code around it.
You must be logged in to reply to this topic.