Can’t log in to WordPress: fixes for common login problems

Login page refreshes, redirect loops, ‘cookies are blocked’, 403 on wp-login.php and forgotten passwords — the fix for each.

Guide2 min readLast updated
On this page
  1. Does this match what you’re seeing?
  2. The login page just reloads
  3. Redirect loop on /wp-admin
  4. “Cookies are blocked or not supported”
  5. 403 Forbidden on wp-login.php
  6. Forgotten password, or no reset email
  7. “Sorry, you are not allowed to access this page”
  8. Common questions

Does this match what you’re seeing?

  • The login page reloads without logging you in
  • wp-admin redirects in a loop
  • A 403 Forbidden error appears on wp-login.php

Find the symptom that matches.

The login page just reloads

  • Site URL mismatch. If WordPress’s address is https://www. but you’re logging in at https:// without www (or vice versa), cookies don’t match. Log in using the exact address in settings, or fix it in wp-config.php. How to change your WordPress site URL
  • Cached login page. Clear your browser cache, or try a private window. If a caching plugin is caching the login page, exclude it.
  • A security plugin blocking you. Rename its folder in wp-content/plugins to deactivate it.

Redirect loop on /wp-admin

Usually a conflict between HTTPS settings: the site address says http://, while .htaccess, a plugin or Cloudflare forces https://. “Too many redirects” and HTTPS redirect loops

“Cookies are blocked or not supported”

Clear cookies for the domain. If it persists, the site URL setting is the usual cause.

403 Forbidden on wp-login.php

A security rule is blocking you — often after too many failed attempts. Wait, try a different network, or check .htaccess for rules restricting wp-login.php. 403 Forbidden: how to fix it

Forgotten password, or no reset email

How to log in to WordPress admin covers resetting through phpMyAdmin.

“Sorry, you are not allowed to access this page”

Your user may have lost its administrator role, which happens after some hacks and migrations with a changed table prefix. Check wp_usermeta for your user’s wp_capabilities entry, and make sure $table_prefix in wp-config.php matches your table names.

Prefer to follow along?

Choosing somewhere to host WordPress? Traxio’s WordPress hosting includes one-click installs, LiteSpeed caching and free SSL.

Common questions

I can’t log in to WordPress — what do I do?

Reset the password using the “Lost your password?” link first. If the reset email never arrives, change the password directly in the database through phpMyAdmin, which always works.

Spotted something out of date or unclear? Tell us and we’ll fix it.

Keep going