WordPress Login Page Keeps Refreshing: Fix the wp-admin Redirect Loop (2026)
If the WordPress login page just reloads after you enter the right password, the usual causes are old cookies or cache, a wrong site URL, a plugin or your theme. Try a private window first, then check that your WordPress Address and Site Address match, then deactivate plugins over FTP if needed.
This problem is different from a wrong password, because WordPress shows no error. You type your username and password, the page flickers, and you are back on the login form. This guide goes through the fixes in order, starting with the quickest and safest.
Login Loop vs Too Many Redirects
The login loop affects the login page and the admin area. The related “too many redirects” error usually affects the whole site, even though the underlying cause can be similar. If your visitors also see an error, read our too many redirects guide. If you actually forgot your password, see our locked out guide.
Quick Diagnosis
| What you see | Likely cause | Start with |
|---|---|---|
| Login works in a private window | Old cookies or cached pages | Fix 1 |
| Started after changing domain or HTTPS | Site URL mismatch | Fix 2 |
| Started after a plugin install or update | Plugin conflict | Fix 3 |
| Started after editing .htaccess or moving hosts | Bad rewrite rule | Fix 4 |
| Everything else fails | Theme or caching problem | Fix 5 and Fix 6 |
Fix 1: Clear Cookies and Try a Private Window
Open wp-login.php in a private window or another browser. If you can log in there, the problem is a stale cookie or cached page in your normal browser. Clear cookies and cache for your site, then try again. This is the simplest fix, so do it before touching any server file.
Fix 2: Check the WordPress Address and Site Address
A common cause is a WordPress Address or Site Address that does not match the address you are using. If you can reach any page of the dashboard, go to Settings, then General, and make both addresses the same, with https if your site uses HTTPS. If you cannot log in, define the addresses in wp-config.php. The handbook says WP_HOME and WP_SITEURL set these values in the file and override the database. Replace the example with your own address:
define( 'WP_HOME', 'https://example.com' );
define( 'WP_SITEURL', 'https://example.com' );Save the file, then try logging in again in a private window.
Fix 3: Deactivate Plugins Over FTP
A plugin error can break the login process. Using FTP or your host’s file manager, rename wp-content/plugins to plugins-off and try to log in. If it works, rename the folder back and reactivate plugins one by one to find the culprit. Our plugin conflict guide walks through it.
Fix 4: Rename .htaccess
Back up and rename .htaccess in your site root to .htaccess-old, then try logging in. If it works, go to Settings, then Permalinks, and click Save Changes to generate a fresh file. If it breaks the site with a 500 error, restore the old file and see our 500 error guide.
Fix 5: Check Caching
Caching can serve the login page from a stored copy. Clear your caching plugin, your host’s cache and any CDN cache. Then check your caching settings to make sure the login page and the wp-admin area are not cached. If you are not sure, ask your host.
Fix 6: Test Your Theme
If the loop continues with all plugins off, switch to a default theme such as Twenty Twenty-Five. If you cannot reach the dashboard, rename your active theme’s folder over FTP so WordPress falls back to a default theme.
Common Mistakes
- Resetting the password again and again when the real cause is a cookie or URL problem.
- Setting the site URL to http while the site forces https.
- Not clearing cache between fixes.
- Editing wp-config.php without a backup, and putting the lines below the “stop editing” comment.
Related Guides
Verified Facts and Sources
The WP_HOME and WP_SITEURL behavior and the plugins and theme folder renames come from the official WordPress documents below. The cookie, cache and URL causes are the common ones listed by hosting guides. We did not reproduce a login loop on a test site while writing this article.
- Editing wp-config.php (Advanced Administration Handbook)
- WordPress.org FAQ: Troubleshooting
- Learn WordPress: Troubleshooting plugin and theme conflicts
- DreamHost: Fix the WordPress login page refreshing issue
Frequently Asked Questions
Why does the WordPress login page keep refreshing?
The usual causes are old cookies or cached pages, a wrong WordPress Address or Site Address, a plugin error, or your theme. WordPress shows no error message in this case, which is why it is confusing.
How do I fix the login loop if I cannot access wp-admin?
Use FTP or your host file manager. Rename the plugins folder to switch off all plugins, set WP_HOME and WP_SITEURL in wp-config.php, or rename .htaccess, testing the login after each change.
Will resetting my password fix the loop?
Usually not. A loop happens even with the right password, so check cookies, site URLs, plugins and cache first.
Is the login loop the same as too many redirects?
They are related and can have similar causes, but the login loop affects the login page and admin area, while too many redirects usually affects the whole site.
Updated December 2, 2026.
More WordPress Error Fixes
- 500 Internal Server Error: Fix the 500 error
- Critical Error on This Website: Fix the critical error message
- White Screen of Death: Fix the blank white page
- Database Connection Error: Fix Error establishing a database connection
- Memory Limit Error: Fix Allowed memory size exhausted
- Update Failed: Fix a failed WordPress update
- 404 After Changing Permalinks: Fix pages showing 404
- Parse and Syntax Error: Fix parse errors from code edits
- Maximum Execution Time Exceeded: Fix timeouts
- Locked Out of WordPress: Reset your admin password
- Headers Already Sent: Fix the headers already sent warning
- Plugin Conflict: Find the plugin causing the problem
- Too Many Redirects: Fix ERR_TOO_MANY_REDIRECTS
- Mixed content error: fix the Not Secure warning after HTTPS
- Fatal error after PHP update: roll back and fix safely
- WordPress not sending emails: fix contact form and reset mail