Skip to content
JL Faverio

JL Faverio

Technical SEO Consultant

  • Home
  • About
  • Website Maintenance
  • Troubleshooting
  • Contact
Most Recent Updates

How to Fix WordPress Stuck in Maintenance Mode (updated September 11, 2026)

How to Fix the ERR_TOO_MANY_REDIRECTS Error in WordPress (updated September 11, 2026)

How to Fix a 500 Internal Server Error in WordPress (updated September 11, 2026)

How to Fix the WordPress White Screen of Death (updated September 11, 2026)

How to Fix WordPress Not Sending Emails (updated September 11, 2026)

How to Fix the WordPress Memory Exhausted Error (updated September 11, 2026)

How to Fix a Slow WordPress Admin Dashboard (updated September 11, 2026)

How to Fix a 403 Forbidden Error in WordPress (updated September 11, 2026)

How to Fix WordPress 404 Errors (updated September 11, 2026)

How to Fix a 502 Bad Gateway Error in WordPress (updated September 11, 2026)

wordpress login redirect loop

How to Fix the WordPress Login Redirect Loop

A WordPress login redirect loop happens when the login form accepts your credentials but sends you back to the login screen. You may also see repeated redirects between wp-login.php, wp-admin, HTTP and HTTPS versions, or different versions of the domain.

The problem is usually caused by cookies, mismatched WordPress URLs, caching, a plugin conflict or conflicting redirect rules.

Table of Contents

Toggle
  • Clear cookies for the website
  • Confirm the WordPress and site URLs
  • Clear every caching layer
  • Disable login, security and redirect plugins
  • Check .htaccess and server redirects
  • Check HTTPS proxy settings
  • Reset authentication salts
  • Check user permissions and the database
  • Prevent future login loops

Clear cookies for the website

WordPress authentication depends on browser cookies. Delete cookies for the affected domain, close the browser and try again in a private window. Confirm that cookies are allowed and that the computer’s date and time are correct.

Confirm the WordPress and site URLs

The WordPress Address and Site Address must use the correct protocol and hostname. A mismatch such as HTTP versus HTTPS or www versus non-www can prevent authentication cookies from working.

If you cannot access wp-admin, temporarily define the URLs in wp-config.php:

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

Replace the example domain with the exact canonical website address. Remove duplicate or conflicting definitions after access is restored.

Clear every caching layer

Purge the WordPress cache plugin, hosting cache, object cache and CDN cache. Login pages should not be cached. Check that wp-login.php, wp-admin and authenticated cookies are excluded from page caching.

Disable login, security and redirect plugins

If the loop began after an update or settings change, deactivate the most likely plugin first. When wp-admin is inaccessible, rename its folder through cPanel File Manager or SFTP. Security, membership, SSL, redirect and custom-login plugins are common suspects.

If necessary, rename the entire plugins directory briefly to test whether a plugin is responsible. Restore the folder name immediately and reactivate plugins carefully.

Check .htaccess and server redirects

Review redirects in .htaccess, cPanel, your CDN and the hosting platform. Multiple rules can fight over HTTPS, www or trailing slashes. Back up .htaccess, then refresh WordPress rewrite rules after removing the conflict.

If the browser reports too many redirects outside the login screen, use my WordPress redirect loop guide.

Check HTTPS proxy settings

A reverse proxy or CDN may terminate SSL before sending traffic to WordPress. If WordPress thinks the request is HTTP, it can repeatedly redirect to HTTPS. Confirm the host and CDN use a compatible SSL mode and pass the HTTPS request status correctly.

Reset authentication salts

As a later troubleshooting step, generate fresh WordPress authentication keys and salts in wp-config.php. This logs out every active user, so coordinate the change on membership, ecommerce and multi-user websites.

Check user permissions and the database

If only one account is affected, confirm the user exists and has the correct role. Damaged user metadata can prevent dashboard access even when the password is correct. Create a verified backup before editing database values.

Prevent future login loops

  • Use one canonical HTTPS domain.
  • Exclude login and admin pages from caching.
  • Avoid duplicate redirect systems.
  • Test security and SSL changes on staging.
  • Keep recent off-site backups.

For related access and server problems, visit my WordPress troubleshooting hub.

Published by
JL Faverio

JL Faverio is a Technical SEO Consultant specializing in WordPress, technical SEO, and website maintenance. I help businesses and agencies fix technical SEO issues, maintain WordPress websites, improve site speed, and solve problems that other developers can't. With years of experience managing hundreds of WordPress websites, I focus on practical solutions that improve search visibility and long-term website health. View all posts by JL Faverio

Posted on September 11, 2026Author JL FaverioCategories WordPressTags WordPress login loop, WordPress login redirect, WordPress troubleshooting, wp-admin
Post navigation
Previous Previous post: How to Fix WordPress Image Upload Errors
Next Next post: How to Repair a WordPress Database
© 1997-2026 JL Faverio