Home/Blog/WordPress Login Redirect Loop: 7 Fixes (2026)

WordPress Login Redirect Loop: 7 Fixes (2026)

Login form trapped in circular looping arrows with key and cookie icons, concept of login redirect loop

You type the correct username and password, hit Log In — and the login page just refreshes, with no error message. Again and again. This is the WordPress login redirect loop: WordPress cannot set or read your authentication cookie, so it keeps sending you back to the login screen. It is not a password problem — it is a cookie, URL, or redirect problem. This 2026 guide’s WordPress login redirect loop fix walks you through seven proven solutions in the right order.

What Causes the WordPress Login Redirect Loop?

WordPress logs you in by setting an authentication cookie in your browser. Anything that blocks, mismatches, or invalidates that cookie sends you back to the login page. The most common causes are:

  • Corrupted browser cookies or cache: The most common cause. Stale or broken cookies for your domain mean WordPress cannot recognize your session — clearing them fixes it instantly.
  • Mismatched WordPress URLs: The WordPress Address and Site Address disagree (http vs https, www vs non-www), so the login cookie is set for one domain variant while you are on another. The reauth=1 parameter in the URL is a telltale sign.
  • Plugin conflicts: Security plugins (Wordfence, iThemes), redirect plugins, and login-customizer plugins are the usual suspects — they intercept the login flow or reject cookies.
  • Corrupted .htaccess file: Bad redirect rules can bounce the login request in circles.
  • Cloudflare Flexible SSL: Cloudflare talks HTTP to your server while WordPress thinks it should be HTTPS, creating a redirect loop specifically on login.
  • Caching the login page: Server cache, a caching plugin, or CDN caching wp-login.php serves a stale page that never completes authentication. (wp-login.php should always be excluded from caching.)
  • Theme redirect code: A theme update that adds login redirects can interfere with the normal flow.

How to Fix the WordPress Login Redirect Loop

Start with the 30-second test — it resolves most cases:

  1. Clear cookies and try incognito. Clear your browser’s cookies and cache for your site (or all cookies), then try logging in from an incognito/private window. If it works there, the problem was stale cookies — done. If incognito also loops, the problem is server-side: continue below.
  2. Fix the WordPress URLs in wp-config.php. Via FTP or your hosting file manager, add these two lines to wp-config.php just above “That’s all, stop editing!” (using your real domain, matching https and www exactly): define('WP_HOME','https://yourdomain.com'); define('WP_SITEURL','https://yourdomain.com'); These override the database values and force the cookie domain to match. Try logging in again. More login troubleshooting is on the KamiWeb blog.
  3. Deactivate all plugins via FTP. Rename wp-content/plugins to plugins.deactivated. If you can log in now, a plugin was the culprit — rename back and reactivate one by one (check security, redirect, and caching plugins first). Swap the offender for a solid alternative from our free WordPress plugins collection.

Login form with a key breaking free from circular arrows into a green checkmark

  1. Regenerate .htaccess. Back up and delete the .htaccess file in your site root, then try logging in. If it works, log into the dashboard and go to Settings → Permalinks → Save Changes to regenerate a clean file.
  2. Fix the Cloudflare SSL setup. In the Cloudflare dashboard, go to SSL/TLS → Overview and set the mode to Full (strict) with a valid certificate on your origin. Then add this to the top of wp-config.php so WordPress recognizes the proxied HTTPS connection: if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') { $_SERVER['HTTPS'] = 'on'; } Purge the Cloudflare cache afterward.
  3. Exclude the login page from all caching. In your caching plugin and CDN, make sure wp-login.php and wp-admin are excluded from caching. Temporarily purge all caches and (for testing) put Cloudflare in Development Mode, then try logging in.
  4. Switch to a default theme. Rename your active theme’s folder inside wp-content/themes so WordPress falls back to a bundled default. If the loop stops, the theme’s login-related code is at fault — reinstall it fresh or choose a dependable theme from the KamiWeb themes library. Keep everyday utilities handy via the KamiWeb free tools.

Conclusion

The login redirect loop is almost never a wrong password — it is cookies, mismatched URLs, or a plugin breaking authentication. Clear cookies, force matching URLs in wp-config.php, disable plugins via FTP, and check your SSL/caching setup. Once you are back in, keep plugins lean and URLs consistent so it never locks you out again. For more free resources, start at the KamiWeb homepage.