Most WordPress login problems are fixed by resetting your password with “Lost your password?”, clearing browser cookies, or disabling plugins (especially security or caching plugins). Login redirect loops usually mean the WordPress Address and Site Address do not match or HTTPS is misconfigured. If you cannot reset your password, change it in phpMyAdmin or ask your host.
Being locked out of your own website is stressful, especially if you need to make an urgent update. WordPress login problems usually come down to a handful of causes: a forgotten password, a redirect loop caused by cookies or URLs, a security plugin blocking you, or a changed login address.
The good news is that there is almost always a way back in. This guide starts with the simplest fixes and works up to the more technical ones.
Being locked out of your own website is stressful. Find your symptom below and follow the matching fix.
Important: Before changing files or the database, take a backup if you can. If you cannot log in, your host’s backups or file manager can help — see how to back up WordPress.
Common WordPress login problems and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| Wrong password or username | Forgotten credentials | Use “Lost your password?” on /wp-login.php |
| Login page refreshes and redirects back | Cookies, URL mismatch, caching | Clear cookies; check site URLs; exclude login from cache |
| Password reset email never arrives | Email delivery problems | Check spam; reset via phpMyAdmin; set up SMTP email |
| “Too many failed attempts” / locked out | Security plugin lockout | Wait, or rename the security plugin folder |
| Login page shows 404 | Custom login URL or broken permalinks | Check security plugin login URL setting; reset .htaccess |
| Admin account missing or changed | Possible hack | Create a new admin via phpMyAdmin and secure the site |

Fix a login redirect loop
- Clear cookies and cacheClear cookies for your domain or try a private window.
- Check site URLsMake sure WordPress Address and Site Address match exactly, including https and www.
- Disable pluginsCaching, security and redirect plugins commonly cause loops.
- Check HTTPS and CDN settingsOn Cloudflare, use SSL mode Full (strict).
// wp-config.php — force the correct site URLs if you cannot reach Settings → General
define( 'WP_HOME', 'https://example.com' );
define( 'WP_SITEURL', 'https://example.com' );
Reset your password in phpMyAdmin
- Open phpMyAdminFrom your hosting panel, select your WordPress database.
- Open the users tableUsually wp_users (the prefix may differ).
- Edit your userIn user_pass, choose the MD5 function and type a new password. WordPress will rehash it securely on your next login.
- Log in and change it againSet a strong new password from your profile.

Locked out by a security plugin
If you cannot reach the dashboard, open your host’s file manager or connect with SFTP, go to wp-content and rename the plugins folder to plugins-off. This deactivates every plugin. If the site works, rename it back and rename individual plugin folders one by one to find the culprit.
If you suspect your site was hacked

Try these first (no technical skills needed)
- Use the right URLTry yoursite.com/wp-admin or /wp-login.php.
- Reset your passwordUse “Lost your password?” and check spam folders.
- Clear cookiesOr try a private/incognito browser window.
- Try another browser or deviceTo rule out extensions.
- Wait out a lockoutSecurity plugins often lock accounts temporarily after failed attempts.
Keep your login secure and accessible
- Use a password manager with unique passwords.
- Enable two-factor authentication — and save backup codes.
- Keep a second administrator account for emergencies.
- Make sure your admin email address is current.
- Note any custom login URL set by a security plugin.
Warning: If you did not change your password and cannot log in, check for unfamiliar admin users and changed settings. It could indicate a compromised site.
Unknown admin users, changed emails or passwords you did not change are warning signs. Regain access, then follow our WordPress security guide and malware removal steps.
For a complete method, see our WordPress troubleshooting guide.
Frequently asked questions
Why does my WordPress login keep redirecting?
Usually because of cookies, a mismatch between the WordPress Address and Site Address, HTTPS or CDN misconfiguration, or a caching or security plugin. Clear cookies and check those settings.
How do I reset my WordPress password without email?
Use phpMyAdmin to edit your user’s password in the users table, use WP-CLI over SSH, or ask your host’s support to reset it.
What is the default WordPress login URL?
It is your domain followed by /wp-login.php or /wp-admin. Security plugins may change it to a custom address.
How do I stop brute-force login attempts?
Use strong unique passwords, two-factor authentication, login rate limiting and a firewall from your host, CDN or a security plugin.
Why does WordPress log me out repeatedly?
Common causes include mismatched site URLs (http vs https, www vs non-www), cookie problems or caching of the login page.
How do I add a new admin user if I am locked out?
Through phpMyAdmin or WP-CLI on your hosting account, or ask your host’s support team for help.
Can two-factor authentication lock me out?
It can if you lose your device. Save backup codes and keep a second admin account to avoid this.
Further reading: the official WordPress documentation.







