We frequently get messages from our customers that their WordPress login web page retains refreshing and redirecting. This locks them out of the WordPress admin space, and they’re unable to work on their web site.
Login points may be brought on by numerous completely different errors corresponding to error establishing database connection, inner server error or white display screen of dying.
One other sort of login error is when your WordPress login web page retains refreshing and redirecting it again to the login display screen. On this article, we’ll present you the best way to repair the WordPress login web page refreshing and redirecting situation.
If you will strive the superior steps talked about on this WordPress tutorial, then please create a again up of your website. See our information on the best way to manually create WordPress database backup.
Subscribe to WPBeginner
If you happen to don’t just like the video or want the written model as an alternative, then please proceed studying.
What Causes Login Web page Refresh and Redirect Difficulty in WordPress?
Incorrect WordPress URL settings and failure to set login cookies are the commonest causes inflicting the login web page redirect and refresh situation.
Usually, once you login, WordPress validates your username and password after which units a login cookie in your browser. After that, it redirects you to the WordPress admin space.
If WordPress fails to set the login cookie appropriately, or your WordPress admin space URL is inaccurate, you then’ll be redirected again to the login web page as an alternative of the admin dashboard.
That being mentioned, let’s troubleshoot and repair the WordPress login web page redirect and refresh situation.
Clear Cookies to Resolve Login Points
In Google Chrome, click on on the browser settings menu after which choose Extra Instruments » Clear Searching Knowledge.
It will launch the Chrome Settings web page with ‘Clear Searching Knowledge’ popup displayed on the display screen.
From right here, it is advisable to choose ‘Clear cookies and different website information’ and ‘Cached pictures and recordsdata’ choices.
Subsequent, click on on the ‘Clear information’ button and Google Chrome will clear the browser cache.
Additionally, be sure that your browser has cookies enabled. After doing that restart your browser after which attempt to login. This could repair the problem for most folk.
Now we have a whole information with screenshots displaying the best way to clear cache and cookies in all main browsers.
Replace WordPress URL Settings
WordPress comes with a settings possibility that has the URL of your web site and the URL of your WordPress set up.
If you happen to had entry to your WordPress admin space, then you could possibly see this selection underneath Settings » Basic web page.
If these URLs are incorrect, then WordPress will redirect you again to the login web page.
Now, since you might be unable to entry the WordPress admin space, you’ll must edit the wp-config.php file to repair this situation.
The wp-config.php file is a particular file in WordPress which comprises your vital WordPress settings. You may entry utilizing an FTP consumer or through File Supervisor app in your WordPress internet hosting account dashboard.
You’ll discover the wp-config.php file in your website’s root folder. Merely edit the file and paste the next code simply earlier than the road that claims ‘That’s all, cease enhancing! Blissful publishing’.
Don’t overlook to interchange instance.com with your personal area title.
After that save your modifications and add the file again to your web site.
Now you can go to your web site and attempt to log in and hopefully, this may have mounted the problem for you.
If it didn’t, then proceed studying for extra steps.
Delete .htaccess File in WordPress
Generally .htaccess file can get corrupted which may end up in inner server errors or login web page refreshing error.
Merely entry your web site by means of an FTP consumer or through the File Supervisor app in your internet hosting account dashboard.
As soon as related, find the .htaccess file within the root folder of your web site and obtain it to your laptop as backup.
After that, go forward and delete the .htaccess file out of your web site.
Subsequent, open the wp-admin listing and if there’s a .htaccess file there, then go forward and delete it as nicely.
Now you can attempt to log in to your WordPress web site. If you happen to succeed, then which means your .htaccess file was stopping you from logging into WordPress.
As soon as you might be logged in, merely go to Settings » Permalinks web page in WordPress admin space and click on on the Save button with out making any modifications. It will generate a brand new .htaccess file in your web site.
Deactivate All WordPress Plugins
Generally WordPress plugins could cause this situation particularly if there’s a battle between two plugins.
To deactivate all of your WordPress plugins, connect with your web site utilizing an FTP consumer or through the File Supervisor app in your internet hosting account dashboard.
As soon as related, go to the /wp-content/ listing. Inside it, you’ll see a folder named ‘plugins’. That is the place WordPress installs all of your plugins.
Merely rename the plugins folder to plugins_backup. It will deactivate all WordPress plugins put in in your web site.
We even have an in depth tutorial on the best way to deactivate all WordPress plugins when unable to entry WP-Admin.
Upon getting deactivated all plugins, attempt to logging in to your WordPress website. If you happen to succeed, then which means considered one of your plugins was inflicting the problem.
Revert Again to the Default Theme
WordPress themes may also trigger conflicts after upgrading to a more moderen model of WordPress or the theme itself. To search out out whether or not the issue is being brought on by your theme, it is advisable to deactivate your theme.
The method is much like deactivating the plugins. Connect with your web site utilizing an FTP consumer. Go to /wp-content/themes/ listing and rename your present theme listing to themes_backup.
Upon getting carried out that, then strive logging in once more. If you happen to succeed, then this implies your theme was inflicting the problem.
Now you can reinstall a recent copy of your theme to see if this resolves the problem. If the problem reappears, then contact your theme’s assist or change to a special WordPress theme.
We hope this text helped you resolve the WordPress login web page refreshing and redirecting points. You may additionally need to see our WordPress troubleshooting information with step-by-step directions on the best way to repair WordPress errors by yourself.
If you happen to favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. It’s also possible to discover us on Twitter and Fb.