Wordpress Login Page Refreshing

How to fix WordPress Login Page Refreshing and Redirecting?

Are you in a case where you’re entering the correct credentials and keep getting the WordPress login page refreshing and redirecting?

If so, you’re locked on the admin page because of an issue with the backend process that helps run the website and admin page. If you have purchased WordPress hosting with us, you can raise a ticket to get this issue resolved or purchase our package. We will do a free migration and fix your website on our own.

In this article, we’ll examine the common causes of this redirect loop at different error stages and show you how to troubleshoot the WordPress login redirect error so you can access your site again.

Always take a backup of all your website files before doing any steps.

Let’s get started!

Common things you should check always with WordPress:

  • Login details – The Username and Password that you set for the WordPress admin page must be saved in Cpanel.
  • WordPress is updated to the latest version.
  • All the Plugins and Themes are updated to the latest version and check whether the installed is compatible with WordPress’s latest updates or not.
  • Always have regular monthly or weekly backup files.
  • Have Security and malware scan Plugins installed to protect your website from hackers?

Steps to fix WordPress login page Refreshing & Redirecting issue:

  • Editing wp-config.php File.
  • Clearing your browser cache
  • Manually deactivating plugins
  • Reverting back to default WordPress theme
  • Create new .htaccess file

1. Editing wp-config.php File

If in case you can get into PhpMyAdmin in your control panel, check if these two sections are same as you gave when you have installed WordPress in first place.

Login refresh and redirect

The wp-config.php file is one of the important files in WordPress which contains information WordPress needs to connect to the database. Simply, click edit .wp-config and paste the following code before the line ‘/* That’s all, stop editing! Happy publishing. */ ’ to update the website URL.

define(‘WP_HOME’,’https://www.domainname.com’);

define(‘WP_SITEURL’,’https://www.domainname.com’);

Don’t forget to replace domainname.com with your own domain name.

2. Clearing Your Browser Cache

WordPress uses cookies for login authentication. So the first step in troubleshooting is WordPress login issues by clearing your browser cookies and cache.

Step 1: In the top right corner, click the three dots » More » Clear browsing data.

Clear-Browsing-Data

Step 2: Click the check box of cookies and cached images and click clear data.

Cookie-and-cached-images

3. Manually Deactivating Plugins

Sometimes WordPress Plugins can cause this issue especially if there is a conflict between newly installed or updated Plugins which is incompatible with the old one.

To login to cPanel, your “domain/cpanel” -> File manager -> public_html -> wp_content

So, have to disable all your Plugins by renaming the Plugins folder in File Manager as plugins_backup.

Disable-Plugin

If it login to the dashboard, then have to disable the Plugins one by one like you did now and find which one causes the issue, delete and install a fresh plugin for it. If not, revert back to the original and move on to the theme folder.

4. Reverting Back To Default WordPress Theme

The same process applies to themes as well. If you can log in to the dashboard after renaming the theme folder, then find which one causes the issue. You have to disable the themes one by one and find which one causes the issue, delete and install the fresh theme for it. Also, change the default theme to a different one if needed. If couldn’t be solved, revert back to the original and move on to the next step.

5. New .htaccess File

The .htaccess file is one of the most sensitive files on the WordPress site. Sometimes it can be facing an error which can result in losing access to your wp-admin panels. So, responding to various requests from the server gets disconnected and made to loop the refresh admin page.

Rename the .htaccess file as .htaccess_backup and download it but don’t delete it as if the error is not with it, we need the old .htaccess file. Now try to log in to the admin page. If you could, then .htaccess causes the issue.

Go to Settings -> Permalink -> click save changes (don’t change anything) and it will create a new .htaccess file with the default codes.

Permalink

If couldn’t solve, revert back to the original.

Hope, these would have fixed the issue now.

Here, as a hosting provider, we are providing the best service in terms of hosting and also making them live with our best-trained teams in a 24*7-time loop.