Getting locked out of your own website is one of the most frustrating experiences a WordPress owner can face. You enter your username and password, click login, and the page simply refreshes or sends you right back to the login screen. This is known as the WordPress login redirect loop.
It feels like your website is stuck in a circle, but don’t worry—your data is safe. This issue usually happens because of a minor setting error or a small conflict between your site’s files. It is a common problem that even experienced developers deal with from time to time.
In this guide, I will walk you through seven simple ways to fix this. We will start with the easiest solutions and move toward more technical ones. By the end of this article, you should be back in your dashboard and ready to work. Let’s get your site back on track.
Table of Contents
What Causes the WordPress Login Redirect Loop?
Before we dive into the fixes, it helps to understand why this is happening. The loop usually occurs because WordPress is confused about where you should go after you log in. Common reasons include:
-
Cookie Issues: Your browser might be holding onto old or “expired” data.
-
Plugin Conflicts: A security or caching plugin might be blocking the login process.
-
Incorrect URLs: If your site address settings don’t match, WordPress gets lost.
-
Corrupted Files: A tiny error in your
.htaccessfile can break the login path. -
Theme Errors: Sometimes a new theme update can interfere with the login screen.
Important: Back Up Your Website First
Before trying these fixes, please make sure you have a recent backup of your site. If you can’t log in to use a plugin, check if your hosting provider has a backup tool in your hosting dashboard. Safety first!
7 Ways to Fix WordPress Login Redirect Loop
1. Clear Browser Cookies and Cache
When to use this: This is the first step for everyone. It is the easiest fix and often the most successful.
Step-by-Step:
-
Open your browser settings (usually the three dots in the top right corner).
-
Look for “Privacy and Security” or “Clear Browsing Data.”
-
Select “Cookies” and “Cached images and files.”
-
Click “Clear data” and restart your browser.
-
Try logging into your WordPress site again.
Why this works: WordPress uses cookies to “remember” that you are logged in. If your browser has old or corrupted cookies, WordPress will reject them and send you back to the login page.
2. Clear WordPress Cache Plugins
When to use this: Use this if you recently made changes to your site or updated a plugin.
Step-by-Step:
-
Since you can’t access the dashboard, you may need to wait 10-15 minutes for the server cache to clear automatically.
-
If you have access to your hosting control panel (like Bluehost or SiteGround), look for a “Clear Cache” button in their interface.
-
If the loop continues, proceed to the next step to manually disable the caching plugin.
Why this works: Sometimes caching plugins keep a “frozen” version of your login page that is broken. Clearing the cache forces the site to load a fresh, working version.
3. Disable Plugins via FTP or File Manager
When to use this: Use this if you suspect a specific plugin (like a security or SEO plugin) is causing the conflict.
Step-by-Step:
-
Connect to your site using an FTP client (like FileZilla) or the “File Manager” in your hosting dashboard.
-
Navigate to the
/wp-content/folder. -
Find the folder named
plugins. -
Right-click it and rename it to
plugins_old. -
Try to log in to your site.
-
If you get in, one of your plugins was the problem! Rename the folder back to
pluginsand then deactivate them one by one inside your dashboard to find the culprit.
Why this works: Renaming the folder “unplugs” all your plugins at once. This stops any buggy code from interfering with your login process.
Struggling with technical files? Sometimes a WordPress backup guide isn’t enough when you’re already locked out. If renaming folders feels overwhelming, our team can jump in to help.
4. Switch to a Default Theme
When to use this: Use this if the login loop started right after you installed or updated a theme.
Step-by-Step:
-
Access your site files via FTP or File Manager.
-
Go to
/wp-content/themes/. -
Find your current active theme folder and rename it (e.g.,
mytheme_old). -
WordPress will automatically look for a default theme like “Twenty Twenty-Four” to use instead.
-
Try to log in again.
Why this works: If your theme has a bug in its functions.php file, it can break the login redirect. This step forces WordPress to use a “safe” theme.
5. Check WordPress URL Settings
When to use this: Use this if you recently moved your site to a new domain or added an SSL (HTTPS) certificate.
Step-by-Step:
-
Use FTP or File Manager to find your
wp-config.phpfile in the main folder. -
Right-click and edit the file.
-
Add these two lines of code right before the line that says “That’s all, stop editing!”:
define('WP_HOME','https://example.com');define('WP_SITEURL','https://example.com');(Replace ‘example.com’ with your actual URL). -
Save the file and try to log in.
Why this works: If the “Site URL” and “Home URL” in your database don’t match exactly, WordPress gets stuck in a loop trying to find the right address.
6. Delete and Recreate the .htaccess File
When to use this: Use this if you suspect your site’s “navigation map” is broken.
Step-by-Step:
-
Access your site files and find the
.htaccessfile in the main folder. -
Download a copy to your computer as a backup.
-
Delete the
.htaccessfile from the server. -
Try to log in.
-
If it works, go to Settings > Permalinks in your dashboard and click “Save” to create a fresh, healthy
.htaccessfile.
Why this works: The .htaccess file controls how URLs work on your site. If it becomes “corrupted,” it can send your login requests to the wrong place.
7. Check File Permissions
When to use this: This is a more advanced fix if your server was recently moved or updated.
Step-by-Step:
-
In your FTP client, right-click your main WordPress folder.
-
Select “File Permissions.”
-
Ensure folders are set to
755and files are set to644. -
Check the “Recurse into subdirectories” box if available.
Why this works: If your permissions are too strict, WordPress cannot “write” the session data needed to log you in. Correcting these numbers gives WordPress the “keys” it needs.
What If You Still Can’t Login?
If you have tried all seven steps and still see that refreshing login screen, don’t panic. There are a few more things you can do:
-
Contact Your Hosting Provider: Sometimes the issue is at the server level (like a full disk or an IP block). Their support team can check server logs for you.
-
Restore a Backup: If you have a backup from 24 hours ago, restoring it might be the fastest way to get back to work.
-
Check PHP Version: Ensure your site is running a modern version of PHP (7.4 or higher).
-
Professional Assistance: Sometimes a second pair of eyes can find a hidden conflict in minutes.
Dedicated Support: How 79mplus Can Help
Fixing backend errors can be stressful and time-consuming. At 79mplus, we specialize in taking the technical weight off your shoulders so you can focus on growing your business.
We act as your reliable WordPress technical partner, offering:
-
Emergency WordPress Fixes: Rapid response when your site goes down or gets locked.
-
Login & Plugin Troubleshooting: Identifying and solving complex conflicts quickly.
-
Performance Optimization: Making your site faster and more stable to prevent future issues.
-
Custom Development: Building secure themes and plugins that don’t break during updates.
Whether you are dealing with a WordPress White Screen of Death or need a custom backend solution, we are here to help.
Frequently Asked Questions
What causes the WordPress login redirect loop?
The most common causes are corrupted browser cookies, incorrect URL settings in your WordPress configuration, or a conflict caused by a caching or security plugin.
Can plugins cause a login loop?
Yes. If a plugin (especially a security or membership plugin) is not configured correctly, it may block the login process or redirect you away from the dashboard.
How do I fix the login redirect loop without FTP?
If you can’t use FTP, you can use the “File Manager” tool inside your hosting account (like cPanel) to rename folders or edit your wp-config.php file.
Can caching plugins cause login issues?
Yes. Caching plugins can sometimes store an outdated version of your login page. If that version has an error, you will be stuck in a loop until the cache is cleared.
Conclusion
The WordPress login redirect loop is a common hurdle, but as we’ve seen, it’s almost always fixable with a few logical steps. Most of the time, simply clearing your cookies or checking your URL settings will get you back inside your dashboard.
Remember to always keep your site maintained and backed up to prevent these issues from becoming major headaches. If you’re ever in a spot where you need expert help or custom development to ensure your site stays stable, reach out to 79mplus. We’re here to handle the tech so you can handle the business.