How to Fix WordPress Login Page Refreshing and Redirecting Issue?
WordPress login issues, such as the page redirecting or reloading when you attempt to access the site, are commonly due to problems with the permalink structure, your .htaccess file or an improperly configured Site URL. There may also be configuration issues introduced by a plugin or your theme files.
Clear Cookies to Resolve Login Issues
Deactivate All Plugins
Sometimes WordPress plugins can cause this issue specially if there is a conflict between two plugins. To deactivate all your WordPress plugins, connect to your web hosting using an FTP client. Rename /wp-content/plugins/ directory to plugins_backup. This will deactivate all WordPress plugins installed on your website. Once you have deactivated all plugins, try to logging in to your WordPress site. If you succeed, then this means that one of your plugins was causing the issue.
Revert Back to the Default Theme
WordPress themes can also cause conflicts after upgrading to a newer version of WordPress or the theme itself. The process is similar to deactivating the plugins. Connect to your website using an FTP client. Go to /wp-content/themes/ directory and rename your current theme directory to anything. WordPress will look for your current theme and will fall back to the default theme. Once you have done that, then try logging in again. If you succeed, then this means your theme was causing the issue.
If you are already using the default theme as your current theme, then you can still rename it and try to login. Download a fresh copy of the default theme from WordPress theme repository and upload it to your website.
Delete .htaccess File
Sometimes .htaccess file can get corrupted which can result in internal server errors . Simply access your website through FTP. Backup the .htaccess file in your computer and then delete it from your website’s root directory. You may want to delete .htaccess file in wp-admin directory as well if it exist. Try logging in again. If you succeed, then this means that your .htaccess file were stopping you from logging into WordPress.
Once you are logged in, then go to Settings » Permalinks and click Save. This will generate a new .htaccess file.
Update Site URL
In some cases defining the site URL seems to fix the issue. To do this, you need to login to your site using FTP and edit the wp-config.php file. Add these two lines of code in your wp-config.php file and don’t forget to replace the example.com with your own URL. Also if your site have www. then make sure you add that.
Save changes, and hopefully that will fix the login page refreshing issue.
We hope this article helped you resolve WordPress login page refreshing and redirecting issues