Having access to your WordPress Dashboard is essential for maintaining your website and working on it in general. This article will cover a well known issue connected to the login page not working and redirecting without providing any errors. We will go through the most common causes and how you can fix each one of them.
Accessing the WordPress Login Page
Before we dive in the root of the issue, you need to make sure that you are loading your Login Page correctly. On most common WordPress installations your wp-admin URL is the same and does not change, for example:
Yourwebsite.com/wp-admin/
Yourwebsite.com/wp-login.php/
Another note for accessing your login page would be if the website is a subdomain or a subdirectory. To access that, you would need to tweak your wp-admin URL, for example:
Your.subdirectory.com/wp-admin/
Your.subdirectory.com/wp-login.php/
Keep in mind that if you have customized your login page, you will need to use the specific name that is set through plugin or code.
Most common denominators causing issues with the WP Login Page
In most cases, the issue is connected to incorrect wordpress settings or an issue with the browser cache and cookies. To put it in simple terms, when you attempt to login your website, the browser sets a specific login cookie, which redirects you to the Dashboard if done successfully.
That is set and validated after you input the correct username and password in order to login. In this case, if it fails to set it up from an incorrect username or password, or the WordPress Login URL is incorrect, then it will fail and loop you back to the login screen.
Alternative reasons for the login page not working or redirecting you in a loop would be various WordPress errors connected to the database of your website or specific server errors causing downtime.
How to fix WordPress Login Page Issue
There are a couple of things you can do, to get your login page to work and start working on your website. One of them we already covered a few clicks back with accessing the correct WP-Admin URL.
We will go through a list of the main things to do before attempting to login again:
- Clear your browser cache and cookies;
- Check and update wp-admin settings for login page;
- Deactivate all website plugins.
The first method is covered by accessing your browser settings and deleting browsing data cache and cookies altogether. In Google Chrome, you can use the search bar for quick access and type in Cache (1) and select Delete Browsing Data (2):
You will get a pop-up menu with options of what exactly you want to delete. Since we are aiming to clear both cache and cookies entirely, you need to select All time (1) and finish the process with Delete Data (2):
Once that is done, you can go ahead and try to access your Website Dashboard to check if that fixed the issue. Keep in mind that by doing so, you might get logged out automatically of other websites where you have saved passwords and login set up.
The second one is connected to checking the wp-admin settings through an FTP Client. If you are using WPX, you can use our built-in File Manager for easy access to complete the task without the need of downloading or using external clients and connecting via FTP.
The first step would be to locate wp-config.php, the file responsible for holding the wp-admin settings. That can be done with navigating through your website files. Most common path would be: public_html/wp-config.php:
Once you double-click on the file, you will enter it in Edit Mode. You can scroll down all the way to the end, where you will see the following code: “That’s all, stop editing! Happy publishing.”
Just before that line, you can input two lines that will define the correct name of your website:
define(‘WP_HOME’,’https://www.example.com’);
define(‘WP_SITEURL’,’https://www.example.com’);
Please note that you will need to change the “example.com” part with the specific name of your website in order to work.
Once you have pasted the code with the correct name of your domain, then you can proceed with saving the file and changes:
When the changes are saved, you can check and try to login your website to see if that fixed the issue.
The third and final most common fix for the issue is connected to disabling your website plugins. Another thing that may be causing issues with your Login Page is a plugin that is not working as expected. If you do not see a specific error and it keeps redirecting you, then you will need to stop all of them in order to troubleshoot if that is the issue.
To do that, you can use an FTP Client or our built-in File Manager as in the previous steps with locating and adjusting wp-admin settings. The main step here would be to locate the plugins folder. In most cases, it is located within the specific WordPress path: public_html/wp-content/plugins:
Once you have located the plugins folder, you can simply select it by ticking the white box next to it:
The final step would be to rename the folder in order to disable all the plugins currently installed on your website. That can happen by right-clicking on the folder and selecting option Rename:
You will see a pop-up tab, where you can simple input the following name: plugins-stop and OK in order to make it work:
Once that is completed, you can try to access and login your website to see if that fixed the issue.
That’s it! These are the most common fixes which you can implement in order to resolve the redirect of the Login Page. If you are still not seeing progress or in need of any help for your website, do not hesitate to contact our WPX Support which are available 24/7 via chat or ticket.