WordPress "redirected you too many times" error: how to fix it
The “This page isn’t working: the site redirected you too many times” error (ERR_TOO_MANY_REDIRECTS in Chrome) happens when two redirect rules send the visitor back and forth in a loop until the browser gives up. In WordPress, the most common causes are the addresses in Settings > General not matching what the site actually uses (http vs https, www vs no www), or duplicate rules in .htaccess and in SSL or cache plugins.
This article shows how to identify the cause and fix it, even when the WordPress dashboard is down, using cPanel.
Before you start
- Make sure you have access to cPanel. The WordPress dashboard probably won’t open, and that’s fine.
- Before editing any file, download a copy of it or rename it instead of deleting it. That way, every step can be undone.
- If you have a recent backup made with JetBackup, great: it’s your safety net in case something goes wrong. See how in backup on cPanel with JetBackup.
- Make one change at a time and test the site after each one.
Most common causes
| Cause | How it usually shows up |
|---|---|
| WordPress and site addresses differ (http vs https, www vs no www) | The error started after installing SSL, migrating or changing domains |
Duplicate rules in .htaccess |
There is more than one redirect block for HTTPS or for www |
| SSL, cache or security plugin | The error appeared after installing or configuring the plugin |
| Redirect created in cPanel | An old redirect points to the address that redirects back |
| Proxy or CDN in front of the site | The error only happens while the CDN is active, and the site opens when it is paused |
Step 1: clear cookies and test in another window
Old redirect cookies can keep the error alive in your browser even after the fix.
- Open the site in an incognito window.
- If it opens normally, clear the browser’s cookies and cache for that domain only, and try again.
- If the error persists in the incognito window, or on another device, the problem is on the site. Move on to step 2.
Step 2: check the WordPress addresses
If the dashboard still opens, go to Settings > General and compare the WordPress Address (URL) and Site Address (URL) fields. Usually both are the same and start with https://, with or without www, depending on how you want the site to appear.
Typical errors:
- One field with
http://and the other withhttps://. - One with
wwwand the other without. - Both with
http://, while the.htaccessor a plugin forceshttps://.
If the dashboard doesn’t open, make the fix directly in the file (step 4). For a complete address change, see how to change the domain or address of your WordPress site.
Step 3: disable the plugins by renaming the folder
SSL plugins (which force HTTPS), cache plugins and security plugins are frequent suspects, since many of them create their own redirects.
- In cPanel, open the File Manager and go into the site’s folder, usually
public_html. - Open
wp-contentand rename thepluginsfolder toplugins-disabled. - Test the site in an incognito window. If the error is gone, the cause is a plugin.
- Rename the folder back to
plugins, then activate one plugin at a time from the dashboard, testing after each activation. The last plugin you activated before the error appeared is the culprit.
If the culprit is a cache plugin, also check its redirect settings. To understand what this type of plugin does, see what a cache plugin is for in WordPress.
Step 4: fix WP_HOME and WP_SITEURL in wp-config.php
When the dashboard doesn’t open, you can force the addresses directly in wp-config.php. These values take priority over what is saved in the database.
- In the File Manager, download a copy, then open
wp-config.phpwith Edit. - Above the
/* That's all, stop editing! */comment, add these lines, replacing the address with your site’s real one:
define( 'WP_HOME', 'https://yourdomain.com' );
define( 'WP_SITEURL', 'https://yourdomain.com' );
- Save and test. Use
wwwin both lines only if that is the address you want to keep.
If the error is gone, go to Settings > General: the fields will appear locked. This is expected while the lines exist in the file. Once everything is stable, you can keep the lines or remove them and save the correct addresses from the dashboard.
If the error persisted, it is better to leave both lines in place and move on to the next step.
Step 5: recreate the default .htaccess
Repeated redirect rules in .htaccess are a classic cause of this error.
- In the File Manager, click Settings and check Show Hidden Files.
- Rename
.htaccessto.htaccess-old. - Test the site. If it works again, the old file had a conflicting rule.
- Go to Settings > Permalinks and click Save Changes without changing anything. WordPress recreates the file with the default rules.
To see what the default file contains and how to create it by hand, see WordPress .htaccess: how to find and create the default file. If the old file had redirects of your own, put them back one rule at a time, using only one rule for HTTPS and only one for www.
Step 6: check cPanel redirects and www
In cPanel, open Redirects and look for any redirect that points the domain to itself, or that sends www to the domain without www while another rule does the opposite. Remove the duplicates. To understand how these redirects work, see how to redirect a domain in cPanel.
Step 7: if there is a CDN or proxy
If the domain goes through a CDN or proxy service, check the encryption mode configured there. A mode that talks to the server over HTTP while the site forces HTTPS makes the requests loop endlessly. Pause the service for a few minutes to confirm: if the site opens, the setting is the cause. Option names vary by service, so check the documentation of the one you use.
When to contact support
Contact support if the error persists after the steps above, if you can’t access cPanel, or if the error appears on every site in your account. Bring the site’s address, the date and time the problem started and what you have already tested. Questions about server-specific settings, such as rules applied outside your .htaccess, also go to support: contact MigraCloud.
Frequently asked questions
What does “redirected you too many times” mean?
The browser received a chain of redirects that never ends, for example, address A sends to B and B sends back to A. The browser stops after a few attempts and shows the ERR_TOO_MANY_REDIRECTS error.
The error appeared after I installed SSL. Now what?
At MigraCloud, Let’s Encrypt SSL is installed automatically. Most likely, WordPress still has an http:// address while some redirect forces https://. Adjust the addresses (steps 2 and 4) and also check the article about a site without a padlock due to mixed content.
Does clearing cookies fix the error?
Only when the problem is in your browser. Test in an incognito window: if the error persists there, the cause is on the site and clearing cookies won’t solve it.
Can I delete the .htaccess?
You can rename it to test, but keep the copy. WordPress recreates the default file when you save the permalinks. Just be careful if the file had your own rules (cache, security, redirects), which need to be put back afterward.
Why are the address fields locked in Settings > General?
Because WP_HOME and WP_SITEURL are defined in wp-config.php. The values in that file take precedence over the ones in the dashboard. To edit them from the dashboard again, remove those two lines from the file.
Did I lose content by disabling the plugins?
No. Disabling plugins doesn’t delete pages, posts or the database. Only the features that depend on the plugin go offline until it is reactivated.