Fix-Wordpress-Login-Page-Refreshing-Redirecting-Issue

How To Fix WordPress Login Page Refreshing/Redirecting Issue

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

  1. 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_HOME’,’https://www.abc.com’);
  • 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.

  1. 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.

  1. 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.

  1. 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.

Your Comment:

Related Posts

Fix-Error-Too-Many-Redirects-in-WordPress

02

Jul
How To

How to Fix Error Too Many Redirects Issue in WordPress

Too many redirects issue on WordPress? No worries! This happens due to an incorrect settings or faulty plugin. When this issue arises, the user is unable to enter their website’s dashboard. Go through this complete post and save yourself from the hassle of not being able to access your website due to the ‘too many redirects’ error. […]

fix-add-media-button-not-working-wordpress

01

Jul
How To

How to Fix Add Media Button Not Working in WordPress

WordPress is becoming advanced day by day but there are some technical failures that keep occurring every now and then. Among those common issues is the add media button not working issue. The worst part that users feel so much frustrated about is that there is no warning or notification why the button isn’t functioning. No matter[…]

Fix-Error-Establishing-a-Database-Connection-WordPress

29

Jun
How To

How to Fix the Error Establishing Database Connection in WordPress

You face ‘error establishing database connection’ issue in WordPress due to many reasons. Beginners feel more agitated because the error seems to be irreparable. Don’t worry! You can fix this issue by a few ways. In this post, we’ll help you learn how to fix the error establishing database connection in WordPress. The reasons why this problem[…]