← Back to Blog
Login Recovery

WordPress Login Redirect Loop? Recover wp-admin Fast

Updated August 202610 min readWpFixMate

You enter the correct password, WordPress appears to accept it, and then sends you straight back to the login page—or the browser shows “too many redirects.” This is usually a session, URL, rewrite, plugin or HTTPS configuration problem. The safest fix is to identify which layer is creating the loop rather than changing everything at once.

Fastest safe order:
  1. Try a private window and clear cookies for this domain only.
  2. Check whether the site URL or HTTPS setting changed recently.
  3. Test .htaccess.
  4. Disable redirect, security and caching plugins without wp-admin.
  5. Check Cloudflare, reverse proxy and host SSL settings.

What a WordPress Login Redirect Loop Looks Like

The issue can appear in several ways:

If an incorrect password produces a normal error but the correct password loops, authentication may be succeeding while the login cookie or post-login redirect is failing.

Step 1: Clear Only This Site’s Cookies

Why this matters

WordPress authentication depends on cookies tied to the exact domain and protocol. Stale cookies from an old domain, www/non-www version or HTTP address can prevent the new session from being recognised.

Delete cookies and cached site data for the affected domain, then retry in a private/incognito window. Also test the exact canonical URL—such as https://example.com/wp-admin/ rather than an old HTTP or www variation.

If the loop happens on every browser and device, move to the server-side checks below.

Step 2: Verify Home and Site URL

A mismatch between the WordPress Address and Site Address is one of the most common causes after a migration, SSL change or accidental settings edit. Both should normally use the real public hostname and the same protocol.

When wp-admin is inaccessible, temporary recovery constants can be added above the “stop editing” line in wp-config.php:

define('WP_HOME', 'https://example.com'); define('WP_SITEURL', 'https://example.com');

Replace the example domain with the correct canonical address. If this restores access, correct the saved values properly before removing the temporary constants.

Do not run a blind database-wide search and replace.

WordPress data may contain serialised values. Use a serialisation-safe tool or controlled database update, particularly after a staging-to-live migration.

Step 3: Test the .htaccess Rules

Security, redirect and caching plugins sometimes write conflicting rewrite rules. Through File Manager or SFTP:

  1. Back up the existing .htaccess.
  2. Rename it to .htaccess-old.
  3. Try the login again.
  4. After access is restored, visit Settings → Permalinks and save once to generate clean WordPress rules.

If renaming the file fixes the loop, inspect the old file for forced-domain, HTTPS or plugin-generated redirects before restoring anything.

Step 4: Disable Plugins Without wp-admin

Login, security, membership, redirect, caching and two-factor plugins can all intercept authentication or post-login routing.

To test all plugins at once, rename:

wp-content/plugins to wp-content/plugins-disabled

If login works, restore the original folder name and disable plugins individually. Start with anything that controls login URLs, SSL, redirects, user roles, security or cache.

For a large plugin stack, test groups rather than one plugin at a time. This binary-search approach finds the conflict much faster.

See the detailed WordPress plugin conflict recovery guide for safe isolation and rollback steps.

Step 5: Rule Out Theme Redirect Code

A custom theme can use login hooks, membership logic or hard-coded redirects. If plugin isolation does not help, temporarily switch to a default WordPress theme. Without wp-admin, rename the active theme folder so WordPress falls back to another installed default theme.

If the loop disappears, inspect custom functions using hooks such as login_redirect, login_url, template_redirect or forced dashboard redirects.

Step 6: Check HTTPS, Cloudflare and Reverse Proxy Settings

This is where many basic guides stop too early. WordPress may see the connection as HTTP while Cloudflare, a load balancer or the host presents HTTPS to the visitor. WordPress then redirects to HTTPS repeatedly because the server never reports the expected scheme.

Check:

Do not disable HTTPS sitewide as the first fix.

That can expose login traffic, create duplicate URLs and damage canonical consistency. Fix the disagreement between layers instead.

Step 7: Clear Every Relevant Cache Layer

After correcting the cause, clear caches in this order:

  1. Browser/site data
  2. WordPress caching plugin
  3. Persistent object cache such as Redis
  4. Host/server cache
  5. CDN or Cloudflare cache

A stale redirect can remain cached even after the underlying configuration is fixed.

When the Loop Started After Changing the URL

Check all of the following:

Do not keep redirecting between multiple versions of the domain. Choose one canonical URL and make every layer agree with it.

What Not to Do

Frequently Asked Questions

Why does WordPress keep sending me back to the login page?

The login cookie may not match the current domain or protocol, or a plugin, rewrite rule, theme function or SSL layer may be redirecting the authenticated session incorrectly.

Why does wp-admin show too many redirects?

Usually two layers are enforcing different URLs—for example HTTP versus HTTPS, www versus non-www, or WordPress versus Cloudflare/server redirects.

Can I fix the loop without dashboard access?

Yes. You can correct URL constants, rename .htaccess, disable plugins via File Manager/SFTP and inspect host/CDN settings.

Why did this start after migrating the site?

The migration may have left old home/siteurl values, cached redirects, old-domain rules or inconsistent proxy and SSL settings.

Will resetting my password fix it?

Not usually. If valid credentials are accepted and then redirected back to login, the problem is generally session or routing configuration rather than the password.

Still Locked Out of wp-admin?

WpFixMate can trace the redirect across WordPress, the database, plugins, SSL, hosting and Cloudflare—then restore access without blindly disabling site security.

Recover My WordPress Login