$99 OFF SEMRUSH(!!!!)  GO!
How To Fix WordPress Login Page Refreshing And Redirecting Issue

How To Fix WordPress Login Page Refreshing And Redirecting Issue

Last modified: October 1, 2020

FAQ
Cloudways

There are times when you might experience issues caused by your WordPress login area refreshing and redirecting continuous. This locks you out of the WordPress admin area, preventing you from working on your website.

This article details how you can fix this complicated, and frustrating, problem.

Step 1 – Backup

The first thing to do is to create a backup of your entire site. Don’t forget to backup your WordPress database as well as your site.

Step 2 – WordPress URL And Cookies

One of the most common reasons why you might have a refreshing issue is that the WordPress URL is incorrect or the login cookies have not been setup. So the first thing you should try is to clear the cookies and cache on your browser. This might resolve the issue automatically. You should also be sure that your browser has cookies enabled.

If this doesn’t solve the problem, try going into the wp-config.php file via a FTP program. Within there you should see all the important settings for your WordPress website. Click to edit the file and then before the final line that says ‘That’s all, stop editing! Happy publishing’ add the following two lines of code:

define('WP_HOME','https://www.example.com');
define('WP_SITEURL','https://www.example.com');

Be sure that you replace the example.com with your own domain name. Now you can save your file and check to see if that has fixed the issue.

Step 3 - .htaccess File

Next you need to see if the .htaccess file has been corrupted. This can happen in many different scenarios. To resolve this, simply delete the .htaccess file from your website’s files through your FTP program in both the root folder and the wp-admin director (if necessary).

If you can log in after this, you can generate a non-corrupted .htaccess file by going to your ‘Settings’ and then ‘Permalinks’ page and then clicking on the ‘Save’ option. You don’t need to make any changes.

Step 4 – Disable Plugins

Sometimes plugins can cause this issue. If this is the case, use the FTP access to go to the Wp-content directory in your WordPress files. Then rename your plugins file to something like plugins_old. You can also do this for the themes on your website, WordPress will automatically revert to a standard theme.

If this works, then you can create a staging site for your website and test which plugin was causing the problem.

If this is the case, and you find which theme/plugin was causing the problem, you might want to try and install a fresh copy of the plugin. If the problem continues, then you need to speak to the developer and get them to look into the problem. They might be able to find a solution and push out an update, thanks to you.

Otherwise you might need to look for a new plugin that offers the same functionality as the one causing the problem.

Remember, to protect your site, it is always best to use a staging website.

Final Word: How t=To Fix WordPress Login Page Refreshing And Redirecting Issue

When it comes to fixing the WordPress login page refreshing and redirecting issue, there are many things that you need to try. Start at the top of the list above and work downwards. It can often be something that is very simple to fix and then you don’t need to hire a developer to fix the problem.

Save 4 Later
Email these links to yourself