Knowledgebase

Fixing the WordPress Login Page Refresh Loop Print

  • wordpress, troubleshooting, plugins, caching, php, domain, https, security, password, htaccess
  • 0

You enter correct credentials, the page reloads, and you are back at the login form with no error. This is a cookie problem, not a password problem.

1. Clear cookies and cache

Clear cookies for your domain, or test in a private window. This resolves it more often than anything else.

2. Check your site URLs

In wp-config.php temporarily add:

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

Use exactly the address you type in the browser, including or excluding www consistently. A mismatch means the cookie is set for one hostname and read on another.

3. Deactivate plugins

Rename wp-content/plugins to plugins-off. Security and caching plugins are the usual culprits — caching the login page is a classic cause.

4. Define the cookie domain

Add to wp-config.php:

define('COOKIE_DOMAIN', false);

5. Reset .htaccess

Rename it, then re-save permalinks after you get back in.

If you use Cloudflare, add a page rule to bypass cache for /wp-login.php and /wp-admin/*.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot