Fixing WordPress admin login page refreshing and redirecting Issue

Even if the user name and password given are accurate, WordPress will occasionally refresh and redirect the user/admin from the WP login page back to the login screen. In this article, you will discover how to resolve the issue of the WordPress admin login page refreshing and redirecting.

It should be noted that this method is only applicable to the aforementioned situation and only for self-hosted WordPress installations. This approach does not apply to sites. Other login troubles include those caused by a failed database connection, an internal server error, or a white screen of death. The solutions on this page do not work for certain issues.

The WP login page going back to the login page issue can arise in a variety of circumstances. We’ve encountered it, for example, in the following situations:

  • The entire site was copied from another domain to the new domain. (for example from .com to .net etc.)
  • New plugin or theme was installed.
  • The site was moved to the new web host.
  • Just out of the blue, without any clear reason (these are most likely cookie or .htaccess related problems).

To resolve the login issue, clear and activate cookies.

The first thing you should do is to clear your cookies and cache. It is also the most prevalent source of the WP login page redirect issue, as well as the simplest to resolve.

WordPress relies on cookies for authentication, which can sometimes be corrupted. You can try a different browser or simply go to your browser’s settings tab and clear your cookies and cache. However, be aware that you will not be able to clean any cookies that you do not wish to remove. Most browsers will allow you to remove cookies based on the domain. If you want to keep additional cookies, you should select that option.

Another cookie-related remedy for the problem is to ensure that cookies are enabled. If you do not have those enabled, you will be unable to log in to WordPress. This could be the case, especially if you are attempting to log in using a device other than the computer you regularly use. As a result, make sure that cookies are enabled.

Please keep in mind that after deleting cookies, you should restart the browser and/or computer.

Deactivate all WordPress plugins and new scripts.
The most typical cause of a login problem is the installation of a new plugin. A conflict between two or more plugins is possible. Simply deactivate the plugin, and you should be able to login.

Even if you haven’t added any new plugins recently, this could be the cause. That’s because you may have updated some plugins, or some plugins may have been updated automatically without the admin’s knowledge. Conflict may arise as a result of the new version(s). In such circumstances, you can re-enable login by removing all plugins.

How can I disable all plugins if my WP admin login isn’t working?

You should use an FTP client like WinSCP or the file manager in cPanel. Navigate to the root directory and then to /wp-content/plugins/. You may now rename each subdirectory. You can simply append 0 to each directory name and go through them one by one. You can try logging in after each rename to see if the plugin you just renamed is the source of the conflict.

You can also change the entire plugins directory, for example, to 0 plugins and see whether you can now log in.

If removing all plugins does not help, you might try disabling any other scripts you have installed on the same domain.

Remove the .htaccess file (s)

The .htaccess file can cause issues in various instances. It could be that a plugin you recently installed updated this file, or that you enabled some functionality that caused changes to the file. The .htaccess file may also become corrupted, resulting in login issues.

You should use an FTP client like WinSCP or the file manager in cPanel. Go to the root directory and remove the .htaccess file. Check to see if there is another in the admin directory. Delete it as well. However, before you delete them, be sure you have backups. You can obtain a backup simply by downloading the file using an FTP programme.

If you can’t find the .htaccess file, make sure you have “display hidden files” activated in your FTP client preferences. When utilising the default settings, these so-called “dot files” are usually hidden.

To fix the WP login redirect, define the site URL in the WP-config file.

In some circumstances, altering / specifying the site URL in the wp-config.php file is beneficial. You should use an FTP client like WinSCP or the file manager in cPanel. Navigate to the root directory and open the wp-config.php file in your favourite text editor. Then look for the line:

/* That's all, stop editing! Happy blogging. */

And then add the following two lines before it (remember to replace with your own domain, and check whether your site uses http:// or https://, and whether the domain resolves with or without the www):


Hopefully, you found this article useful. Please leave a comment and let us know which solution worked best for you! Please contact us if you have any queries about the WordPress login redirect issue.

Add a Comment

Your email address will not be published. Required fields are marked *


My name is Nohman Habib and I am a web developer with over 10 years of experience, programming in Joomla, Wordpress, WHMCS, vTiger and Hybrid Apps. My plan to start is to share my experience and expertise with others. Here my basic area of focus is to post tutorials primarily on Joomla development, HTML5, CSS3 and PHP.

Nohman Habib


Request a Quote

PHP Code Snippets Powered By :