WordPress Login Page Not Working: wp-login.php Shows 404 or Blank
If wp-login.php fails, a login-URL plugin, a firewall rule or a broken plugin is usually responsible.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Check
- Did you change the login URL with a security plugin? Use the custom address. See Forgot Your Custom WordPress Login URL After Changing wp-login.php.
- Blank page. This is a PHP error. See WordPress debug mode.
- 403 or blocked. A firewall or host rule may block your IP after failed logins. Wait, or ask the host. See Locked Out of WordPress by a Security Plugin or Blocked IP Address.
- 404. Save permalinks, and check that
.htaccessexists and is not empty. - Too many redirects. See "Too Many Redirects" (ERR_TOO_MANY_REDIRECTS) on WordPress: Fix.
Do not
Do not install random "login fixer" files from forums. Use your host's File Manager and keep a backup first.
Related guides
- YouTube Video Embed Not Working or Showing an Error on Your Website
- Yoast SEO or Rank Math Sitemap Shows 404 or Is Empty
- WordPress XML Sitemap Gives 404 or Is Not Generating
- Changed the WordPress Address (URL) and Now the Site or Login Is Broken
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.