How To Fix Login Page Refreshing & Redirecting Error On WordPress

in Technology , WordPress
There is one error-dubbed-problem you might experience on WordPress, initially at the main entrance to login. WordPress users lamenting of their login page redirecting them out and refreshing. This amount to difficulty of logging in to WordPress dashboard, thus denying you the access to full administrative functions and control of your website.



"My WordPress login page is refreshing and redirecting back outside even though my login informations are correct, I'm unable to access my WordPress admin dashboard..." reads a mail of a disturbed mind of a WordPress user.

Panic no more, the issue will be address and solve in this article. 

WP Login refreshing and redirecting, why?

Sorry, this login issues arose as a result of series of malfunctioning within the WordPress holding caused either by theme files, plugins against each other, URL pointing, or basically affected by browser's caching and cookie enforcement.



How to Fix Login Error on WP

When your login page keeps refreshing and redirecting it back to the login screen, it is probably as a result of the above stated errors or issues. So let’s take a look at how to fix the WordPress login page refreshing and redirecting issue.

However, the pivotal and common solutions in fixing login redirecting and refreshing difficulty is as follows:
  • Clear your browser's cookies and cache
  • Deactivate WordPress plugins
  • Restore default theme
  • Delete .htaccess file
  • Update your site URL via wp-config.php file

  • Clear browser cookies

    Virtually larger percentage of website uses cookies to deliver better user experience to their user. So also WordPress, the cookies gathered by your browser is used to serve you with right information and authentication without uproar. But seriously these cookies can cause a few error including redirecting you back to the login page. Though, it might not be as serious as may think of, its just normal. Clear the cookies and cache in your preferred browser. Simply clear tons of cookies saved by your browser so far and retry login. All in all, don't forget to make your browser cookies enabled.

    If this doesn't solve the login redirect error, then see to other next causes and try their solution.

    Deactivate Plugins

    Plugins are available for WordPress user to enhance their possibilities and tweak their website more. But sometimes these plugins might work against each other resulting to series of internal errors including login page redirecting and refreshing.

    So what if the problem is caused by activated plugins, one needs to deactivate them all. You need to deactivate all of your plugins to see if a faulty plugin is causing the error. To carry this out, log on to your web hosting provider or FTP Client and navigate to your web root directory, simply Rename /wp-content/plugins/ directory to any name you will remember as your plugin-renamed folder other than the original spelling to deactivate all plugins. 

    This will deactivate all WordPress plugins installed on your website. Now, you can try login again, if successful, thumb up this is the cause and solution.

    If this doesn't solve the issue, then see to other cause next and try their solution.


    Delete .htaccess File

    The .htaccess file is an essential file located in the /wp-admin directory, but it might develop a few bugs causing error for unknown reason at times. So, when the .htaccess file becomes corrupted, it can cause a myriad of issues, one of them being this WordPress login page issue.

    However, open your site’s root directory via your preferred FTP client. Backup the .htaccess file by downloading it to your computer and then delete it from your website’s root directory. 

    After this, you can login again and if you successfully get to your admin dashboard. Then this is unquestionably the cause. Now, you have to navigate to wordpress setting, then to permalink setting and update it to create another .htaccess in your web directory.

    Restore default Theme

    Just as you apply it for plugin deactivation, themes' file could cause myriad resulting to login error on your WordPress site. And to scape through this, log on to your web hosting panel and straight to your web directory. Remove themes present in the themes folder, and place a default WordPress theme there. Or better still, Go to /wp-content/themes/ directory and rename your current theme directory to anything as you did for plugin . WordPress will look for your current theme and will fall back to the default theme. 
    Now, you can try login again, if successful, thumb up this is the cause and solution.

    If this doesn't solve the issue, then see to other cause next and try their solution.

    Check Website URL

    The actual label of where your website address points to might also be the cause at times. So, you will have to check and update your WordPress site link destination.
    To do this, you need to log on to your web hosting provider panel using FTP and edit the wp-config.php file. Simply add these two lines of code in your wp-config.php file and don’t forget to replace the mywebite.com with your own URL. Also if your site have www. then make sure you add that.

    define( 'WP_HOME' , 'http://mywebsite.com' );
    define( 'WP_SITEURL' , 'http://mywebsite.com' );

    Save it, and check the result aftermath.


    Conclusion

    By now, you should be able to fix a WordPress login page redirecting or refreshing meanwhile denying access to WordPress admin dashboard. But before you try it out, check the simple how-to below:

    First clear your browser's cookies as this may apparently record sensitive data which may aggravate the issue.

    Secondly, login to your hosting FTP dashboard and try to deactivate plugins by renaming its folder

    Thirdly, renaming themes' folder just like plugins too via FTP can help and safely restore to WordPress default theme 

    Also, login page that is redirecting or refreshing itself may be corrected by deleting the .htaccess file of your site via FTP. Note that this is one of the most important and sensitive file, so it is advisable to back it up locally.

    Lastly, correcting your initial site URL via wp-config.php file can ease the tension.

    Thank you for reading.