WordPress users often have messages with their login page refreshing and redirecting. This avoid them from to access WordPress admin area, and they cannot operate on their site.
Login problems could be caused by various distinct errors like error database, internal server error or white screen of death.
Another Kind of login mistake is if your WordPress login page keeps refreshing and redirecting back into the login screen. Within the following guide, we’ll explain to you the best way you can repair your WordPress login page.
What Makes Login Page Refresh and Redirect Issue in WordPress?
The WordPress admin URL, and problems with the cookie used for the login part are the two main causes of this trouble.
Ordinarily, when you login, WordPress considers your username and password then puts a login cookie on your browser. Following that, it redirects you to the WordPress admin area.
In case WordPress fails to place the login cookie properly, or your WordPress admin area URL is wrong, then you will be redirected back to the login page rather than the admin page.
From this observation, let us analyze the different possibilities of solving this problem.
Clear Upgrades to Resolve Login Problems
In Google Chrome, click on the browser settings menu and select “Privacy and Security” and “Clear Browsing Data”.
This will launch Chrome settings with the “Clear Browsing Data” pop-up on your computer.
Select “Cookies and other site data” and “Images and cached files”.
Then click on “Clear Data”.
Also, ensure that your browser has cookies enabled. After performing the restart of your browser, try to login to your WordPress website. This ought to correct the problem for the majority of people.
Update WordPress URL Preferences
WordPress includes a settings option which gets the URL of your site as well as also the URL of your WordPress setup.
If you have access to a WordPress admin area, then you can observe this choice under Settings > General page.
If those URLs have a problem, then WordPress will redirect you to the login page.
Now, as you can not access the WordPress admin area, you will edit the wp-config.php to repair this problem.
The wp-config.php document is a special file in WordPress that contains your significant WordPress settings. It is possible to access with an FTP client your WordPress hosting account.
You’ll find that the wp-config.php document in your website’s root folder. Just edit the document and then paste the following code just before the line which “That’s all, stop editing! Happy publishing ».
Do not forget to replace mywebsite.com with your domain.
Then save your modifications and upload the file to your site.
Now you can see your site and attempt to log into.
If this still does not work, go to the next section.
Delete .htaccess Document in WordPress
Occasionally .htaccess document can get corrupted which could lead to internal server errors or log page blank error.
Just get into your site via an FTP client or through the File Manager program on your hosting account.
Once joined, find the .htaccess file from the root path of your site and download it on your personal computer as backup.
After that, proceed and delete the .htaccess document in the site.
Then start the wp-admin directory and when there’s a .htaccess file , then go on and delete it also.
Now you Can attempt to log into To a WordPress site. Should you succeed, then that usually means your .htaccess document was preventing you from logging in to WordPress.
As soon as you are logged , simply visit Permalinks webpage from WordPress admin settings and click the save button without making any adjustments. This is going to create a brand new .htaccess file for your site.
Deactivate All WordPress Plugins
Occasionally WordPress plugins may cause this problem particularly if there’s an incompatibility involving two plugins.
To deactivate all of your WordPress plugins, go to the site with an FTP client.
Once connected, find the /wp-content/ directory. In it, you will see a folder called /plugins/. This is where WordPress installs all of your plugins.
Just rename the plugins folder into plugins_backup for example. This may populate all WordPress plugins installed onto your own site.
As Soon as you have deactivated all plugins, attempt to logging into your WordPress website. If it is a success, then that usually means that among your plugins has been causing the issue.
Then you just have to rename this folder to its original name, then, in the plugin folder, rename one by one the folder of each plugin until you find the one that was blocking the login page.
Revert Back into the Default Theme
WordPress themes may also cause conflicts after updating to a more recent version of WordPress. To learn whether the issue has been caused from the theme, you also have to disable it.
The process is like deactivating the plugins. Connect to a site with an FTP client. Proceed into wp-content/themes/ directory and then rename your existing theme directory into themes_backup.
As soon as you have completed that, then try logging in again. If you succeed, then that implies your main theme was causing this matter.
You can now rename your theme folder to its original name to see if that solves the situation, or use a backup of your theme folder (or reinstall/update it). If the problem reoccurs, contact the theme author or an expert who will be able to identify the problem.
Still stuck ? You can contact an expert.