We often receive messages from our users that their WordPress login page refreshes and redirects. This takes them out of the WordPress admin area, and they are unable to work on their website.
Login problems can be caused by various different errors such as error in establishing database connection, internal server error or white screen of death.
Another type of login error occurs when your WordPress login page keeps refreshing and redirecting it to the login screen. In this article, we will show you how to fix the issue of refreshing and redirecting the WordPress login page.
Fixing login page redirect and refresh problem in wordpress
If you are going to try the advanced steps explained in this WordPress tutorial, please back up your site. See our guide on how to manually create a WordPress database backup.
If you do not like the video or prefer the written version instead, please continue reading.
Which logins are caused by page refreshes and redirect issues in WordPress?
The most common reasons are incorrect WordPress URL settings and failure to set login cookies, which cause the login page to be redirected and refreshed.
Generally, when you login, WordPress validates your username and password and then sets a login cookie in your browser. From that point onward, it diverts you to the WordPress administrator zone.
If WordPress fails to set the login cookie correctly, or your WordPress admin area URL is incorrect, you will be sent back to the login page instead of the admin dashboard.
That being said, redirect the WordPress login page and refresh troubleshoot.
Clear cookies to solve login issues
WordPress utilizes treats for login confirmation, so the initial phase in investigating WordPress login issues is the least complex. Clear your browser cookies and cache.
In Google Chrome, click the browser settings menu and then select More Tools »Clear Browsing Data.
This will launch the Chrome Settings page with the ‘Brow Clear Browsing Data’ popup displayed on the screen.
From here, you have to select ‘Clear Clear Cookies and other site data’ and ‘Cached images and files’ options.
Next, click the ‘Clear data’ button and Google Chrome will clear the browser cache.
Likewise ensure that treats are empowered in your program. After doing this restart your browser and then try to login. This should fix the problem for most people.
We have a total guide with screen captures telling the best way to clear store and treats on the whole major browsers.
Update wordpress URL settings
WordPress comes with a setting option that contains the URL of your website and the URL of your WordPress installation.
If you have access to your WordPress admin area, you can see this option under the Settings »General page.
If these URLs are incorrect, WordPress will return you to the login page.
Now, since you are unable to access the WordPress admin area, you will need to edit the wp-config.php file to fix this problem.
The wp-config.php file is a special file in WordPress that contains your important WordPress settings. You can access it using the FTP client in the dashboard of your WordPress hosting account, or through the File Manager app.
You will find the wp-config.php file in the root folder of your site. Just edit the file and paste the following code immediately before the line that says all is all, stop editing! Happy Publications’.
Remember to supplant example.com with your own space name.
After that save your changes and upload the file to your website.
Now you can go to your website and try to log in and hopefully, this will fix the problem for you.
If this did not happen, continue reading for additional steps.
Delete .htaccess file in wordpress
Sometimes .htaccess file can be corrupted resulting in internal server errors or login page refresh error.
Simply access your website through an FTP client or through the File Manager app in the dashboard of your hosting account.
Once connected, locate the .htaccess file in the root folder of your website and download it to your computer as a backup.
From that point forward, feel free to erase the .htaccess document from your site.
Next, open the wp-admin directory and if there is a .htaccess file, go ahead and delete it as well.
Now you can try logging into your WordPress website. If you are successful, it means that your .htaccess file is preventing you from entering WordPress.
Once you are logged in, just go to the Settings »Paralinks page in the WordPress admin area and click the save button without making any changes. This will produce another .htaccess record for your site.
Disable all wordpress plugins
Sometimes WordPress plugins can cause this problem, especially if there is a conflict between the two plugins.
To deactivate all your WordPress plugins, connect to your website using the FTP client or via the File Manager app in the dashboard of your hosting account.
When associated, go to the/wp-content/catalog. Inside this, you will see a folder named ‘Plugins’. This is where WordPress installs all your plugins.
Just change the plugins folder to plugins_backup. This will disable all WordPress plugins installed on your website.
We also have a detailed tutorial on how to deactivate all WordPress plugins when unable to use WP-Admin.
Once you have disabled all plugins, try logging into your WordPress site. If you are successful, it means that one of your plugins was causing the problem.
Return to the default theme
The WordPress theme can also cause conflicts after upgrading to a new version of WordPress or theme. To find out if your topic is causing problems, you need to deactivate your topic.
The process is similar to deactivating plugins. Connect to your website using an FTP client. Go to / wp-content / themes / directory and rename your current theme directory to theme_backup.
Once you do this, try logging in again. If you succeed, it means that your subject was causing problems.
Now you can reinstall a new copy of your topic to see if this problem is resolved. If the problem reappears, contact your theme support or switch to a different WordPress theme.
We hope that this article helped you solve the issues of refreshing and redirecting the WordPress login page. You want to see our WordPress troubleshooting guide with step by step instructions on how to fix WordPress errors on your own.