Isn’t it scary yet annoying when you try to log in to your site, and the page keeps reloading? It’s a WordPress login redirect loop that happens for many reasons.
In this tutorial, you’re going to learn about all the possible solutions to get rid of this redirect look from your WordPress site’s login page.
Method 1). Clear Your Browser’s Cache and Cookies
I am sure that you already know a browser stores static files, images, and a site’s data so when you open it as its cache, the site loads faster.
A site’s cookies can cause an issue like the redirect loop. You have to clear the cache as well as cookies. It would be helpful to clear the history of your browser too.
Here are a few steps to clear cache and cookies of Google Chrome:
1). Click on the three dots from the top-right corner and select History to open it. It might also show a side menu. Open History from it.
2). From the left-sidebar, click on “Clear browsing data,” and a popup will show up.
3). Check the boxes for cache, cookies, and history. Please don’t forget to select “All time” from the drop-down menu.
4). Click on “Clear Data.”
Now, try to log in to your site again.
Here is a step by step guide to removing cache from Safari:
Not everyone uses Google Chrome. Most MacBook users prefer Safari over Chrome.
1). Click on Safari>>Preferences, and a popup will show up.
2). Select the “Privacy” tab and click on “Manage site data.”
3). Search for your site’s URL and click “Remove.” You can also remove the cache of all sites.
Similarly, if you use a different browser, you can easily clear its cache and cookies.
Method 2). Deactivate Plugins
Sometimes, a plugin conflicts with a different plugin that leads to creating an infinite redirect loop for the login page.
So, it’s always a good idea to deactivate all plugins at once. You can do it from cPanel.
Here are a few steps to follow:
1). Log in to your hosting account, open cPanel, and click on File Manager.
2). From the left-sidebar, click on public_html because it’s the root directory. Look for the wp-content folder that contains all themes, plugins, and media library.
3). Right-click on “Plugins” and rename it to something else. Once you rename the folder, all plugins will automatically be activated.
And if there’s something wrong with a plugin, you will be able to log into your site.
Method 3). Delete and Recreate the .htaccess File.
Sometimes, plugins add some rules in the .htaccess file that might cause the WordPress login redirect loop.
Here are a few steps to find the .htaccess file and delete it.
1). Open the file manager as you did for the wp-content folder.
2). Below all folders, you will see files. Right-click on .htaccess and delete it.
3). After that, you have to create a new file and add the new .htaccess file with its default rewrite rules.
I understand how confusing it can be when you see the WordPress login redirect loop. There’s nothing to worry about. It’s one of the most common errors.
The above-mentioned methods will help you solve this issue within a few minutes. I suggest you try clearing your browser’s cache before going into any technical details.
- Click here to get the best wordpress hosting specialized for wordpress.