Can’t log in to WordPress? 13 solutions
The solution to the problem of not being able to log in to the WordPress admin screen or not seeing the login screen.
When the login screen appears
Check the correct username and password
In some cases, you can’t log in because you typed your username and password. As you type, check the following
- Is CapsLock engaged?
- Check the input mode
- Misspelling uppercase and lowercase letters
- 0 and similar letters such as o?
Enter Email Address
Forgot your username? You can also log in with your registered email address.
Sometimes you can’t log in due to cookies in your browser, try deleting your cookies.
Check the following for information on how to delete cookies in each browser.
Confirm that login restrictions have not been set
If a 403 error occurs after clicking the login button, it is likely that the server is restricting access.
Check server manuals, etc.
If you forget your password, Lost your password? link.
Receive an email about resetting your password.
- Enter the username or email address
- Click on the Get New Password button
You will receive an email to your registered email address where you can reset your password.
Click on the link.
The screen for entering a new password will appear.
- Enter new password
- Click on the Reset Password button
Your password has been reset. Click on Login and you will see the login screen.
Log in with your new password.
When the login screen does not appear
Make sure you’re connected to the Internet
Make sure that your internet connection is not disconnected. If you can’t see it when you go to other sites, you don’t have an internet connection.
If you are connecting with a wireless LAN (Wifi), try to connect to a wired LAN. If you can’t connect to the internet on your computer, check to see if you can connect to wifi on your smartphone.
If you can’t connect to Wifi on other devices, there may be a problem with your router or line. Contact support.
Check Login URL
If the login screen is not displayed, the login URL may be incorrect.
The URL of the login screen is different depending on where you have WordPress installed.
The URL for the login screen explains in detail in the following article, so please refer to it.
If you install a new plugin or update it and then can’t log in with a 404 error, disable the plugin.
Rename the folder called plugins in the wp-content folder by using FTP software.
If you are able to log in, it’s because of a plugin you installed or updated before the problem occurred. Let’s stop it.
Once the problem solved, put the plugins folder name back into plugins.
If you install a new theme or if you are unable to log in after an update, disable the theme.
You can change the name of a folder in “wp-content/themes” by using FTP software. Renaming the folder will enable Twenty-Twenty.
If you are able to log in, this is due to a theme you installed or updated before the problem occurred. Let’s stop it.
Once you’re logged in, change to a different theme.
Create a new file for the login screen
If your login screen file “wp-login.php” breaks, we will replace it with a new file.
- Remove wp-login.php using FTP software
- Download the latest WordPress
- Reuploaded wp-login.php
Open wp-login.php and look for one line below.
$user_login = $user_data["user_login"];
Rewrite and save the data as follows.
$user_login = $user_data->user_login;
Change the site address (URL)
In some cases, you cannot log in after changing the site address (URL) of the management screen.
Download wp-config.php using FTP software.
Add the following line before “That’s all ~” in the wp-config.php that you downloaded.
define( 'RELOCATE', true ); /* That's all, stop editing! Happy publishing. */
Upload wp-config.php in the same place and save the overwrite.
When you access the URL where you installed WordPress + wp-login.php, you will see the login screen.
After logging in, the site address (URL) of the administration screen returns. After putting it back, this time, delete the one line you added to wp-config.php and re-upload it.
If you redirect from the login screen to another page, your .htaccess file may have been rewritten.
Save an existing file and regenerate it.
Download the .htaccess file using your FTP software and delete the file on your server.
Log in from the login screen. Click the Save Changes button in the permalink settings on the admin screen.
.htaccess file regenerates.
Make sure you’re not opening WordPress.com
When I search for “WordPress login”, I don’t see your site’s login screen in the search results.
The login screen that appears in the search results is the WordPress.com login screen. This is a blog type WordPress, not an install type.
Below is the login screen for WordPress.com. Let’s not get it wrong.
Post to the forum
If you have tried the above and it doesn’t work, WordPress has a forum. Ask questions on the forum.
The more detailed you are in your post, the more likely you are to resolve it.
- WordPress version
- PHP version
- MySQL version
- Changes made before the problem arose
- What I tried after the problem occurred