Login Keeps Redirecting Back to the Login Page
After logging in, the site sends you straight back to the login page - usually caused by cookies, site URL settings, or a security plugin.
Why this happens
After a successful login, WordPress sets an authentication cookie and redirects you back to wp-admin - but if your site's URL settings don't match your actual domain, a security plugin blocks the cookie, or the cookie domain is misconfigured, WordPress can't recognize that you're logged in and sends you back to the login screen in a loop.
Step-by-step fix
- Clear your browser cookies and try again, or use an incognito/private window.
- In phpMyAdmin, check the wp_options table - siteurl and home should both match.
- If a security plugin (like Wordfence) is installed, temporarily disable it by renaming its plugin folder.
- You can also try manually setting the cookie domain in wp-config.php if the issue continues.
How to prevent it happening again
- Keep your WordPress Address and Site Address settings consistent and matching your actual domain.
- If using a security plugin, check its login protection settings after any major update.
- Avoid running two security plugins that both manage login attempts, as they can conflict.
😩 Still stuck, or want it fixed without doing it yourself?
I fix WordPress errors like this every day. Send me your error and I'll get your site back up - most fixes are completed within 24 hours.