The issue of WordPress login page refreshing/redirecting is very common. When this happens, users get locked out of their website’s admin dashboard and cannot access anything inside it. Although this WordPress issue can occur at anytime due to some specific reasons, there are some easy solutions to resolve it.
In this post, we help you discover how to fix WordPress login page refreshing/redirecting issue.
Before that, first it’s good to understand the reasons that bring this issue in front.
What causes WordPress login page to refresh/redirect
One of the most common reasons why this WordPress refresh error occurs is that your URL settings are incorrect or the login cookies are not set properly. WordPress, usually, validates and save your login credentials to the browser cookies section. If it fails to record your login credentials correctly, you will be redirected back to the empty login area.
That being said, you can resolve the WordPress login page refreshing/redirecting issue by following these tips.
Fix WordPress Login Page Refreshing/Redirecting Issue
Update WordPress URL Settings
Since the WordPress login page refreshing/redirecting issue can also be caused by the wrong URL settings, you need to ix that as well. You can do this in the following manner:
Usually your WordPress URL is found in the admin area > Settings > General. But since you’re unable to reach there right now, you can find the URLs of your website and WordPress installation through an FTP client or File Manager (in cPanel):
- Once inside, access the root folder
- Head to the wp-config.php file. This file contains important settings of your WP website
- Copy and paste this code in the file right before the sentence, “That’s all, stop editing! Happy publishing”
- You’ll find the wp-config.php file in your site’s root folder. Simply edit the file and paste the following code just before the line that says ‘That’s all, stop editing! Happy publishing’.
- define(‘WP_SITEURL’,’https://www. abc.com’);
- Replace the www.abc.com with your website’s URL
- Save the changes
- Upload the file again
Now, access your website admin area. You should have the login issue fixed now. In case you still can’t login to your website, access the FTP or File Manager again and do this:
Access the .htaccess file in the root folder since there are chances that it has got corrupted and is causing internal server errors
- Download it your PC to have it as a backup
- Now, delete the file from the WordPress
- Also, delete the .htaccess file located in the wp-admin directory
Try accessing your WordPress admin panel again by logging into your website. If this time you can do it, then it was the .htaccess file that was the culprit. Once logged in, you need to recreate the .htaccess file because it’s necessary for WordPress. Head to Settings > Permalinks. Click Save to recreate the file.
Clean up cookies
You can clear up cookies and cache of your browser to fix the WP login issue. Simply, go to Settings (in Google Chrome and select More Tools > Clear Browsing Data. Next, select the options, ‘Clear cookies and other site data’ and ‘Cached images and files’.
Similarly, in other browsers too, you need to access the settings to remove your browser data.
Revert Back to the Default Theme
Just like many other issues on WordPress, this login page refreshing/redirecting issue can also be the result of a faulty theme that you are using on your website.
To fix the theme, you need to switch back to the default theme of WordPress via an FTP app or File Manager of your hosting account. Access /wp-content/themes/ directory and give it a new name, which is “themes_backup”. Log in to your website again and report the theme to the developer if it was a theme-generated issue.
Disable WordPress Plugins
Many times, it’s the plugin area that has the culprit of most of WordPress issues in it. In the present case of the WordPress login page refreshing/redirecting issue; there must be chances that some of your two or more plugins have had a conflict among them.
- You can find out whether it’s a plugin problem by disabling all the installed plugins on your WordPress. You can visit the /wp-content/ directory in the FTP or File Manager and find a folder with the name “plugins’’ on it
- Now rename the file to “plugins_backup”
Your plugins will be disabled. Now, log in to your WordPress admin area. If you succeed, the plugins created the WP redirect issue. Once inside, you need to re-enable all the plugins one by one to check which one of them caused you this problem. It may take some time but you will find the cause. Report that/those plugin/s to the respective developers.