How to fix ERR_TOO_MANY_REDIRECTS
This guide explains how to fix ERR_TOO_MANY_REDIRECTS ("This page isn't working – example.com redirected you too many times"). The error means your website is stuck in a redirect loop: page A sends the browser to page B, and B sends it back to A. The usual causes are conflicting HTTPS or www rules, Cloudflare's Flexible SSL mode, a wrong WordPress address, or a redirect plugin.
Step 1: Clear cookies and confirm the loop
- Open the site in an incognito window. If it works there, clear cookies for that site in your normal browser.
- If it still loops, see where the redirects go. From any terminal run:
You will see a list of addresses. If they repeat (for examplecurl -sIL https://example.com | grep -iE "^(HTTP|location)"http://→https://→http://), you have found the loop. Online "redirect checker" sites show the same thing.
Step 2: Check Cloudflare (if you use it)
The most common cause we see. With SSL/TLS mode set to Flexible, Cloudflare talks to your server over HTTP. Your server (or WordPress) then redirects to HTTPS, Cloudflare asks again over HTTP, and the loop never ends.
- In the Cloudflare dashboard, open your domain and go to SSL/TLS.
- Change the encryption mode to Full (strict). Your hosting already has a free certificate; see How to get a free SSL certificate for your website (AutoSSL).
- Wait a minute and test again in an incognito window.
Step 3: Remove duplicate redirect rules on the hosting
Use only one place to force HTTPS and choose www or non-www. Check these places and keep a single rule:
- cPanel → Domains → the Force HTTPS Redirect switch.
- cPanel → Redirects: delete any redirect that points the domain to itself.
- The
.htaccessfile inpublic_html(open it with File Manager, enable "Show Hidden Files"). Look for rules withRewriteRuleandR=301that send www to non-www while another rule does the opposite.
The correct rules are explained in How to Force HTTPS and Redirect www to non-www (or non-www to www). Always download a copy of .htaccess before editing it.
Step 4: Fix the WordPress address
If WordPress has WordPress Address (URL) and Site Address (URL) set to http:// while the server forces https://, or to www while the server removes it, you get a loop and you cannot open wp-admin to fix it. Fix it from wp-config.php:
- Open
public_html/wp-config.phpin File Manager and make a backup copy. - Above the line
/* That's all, stop editing! */add (with your real domain):define( 'WP_HOME', 'https://example.com' ); define( 'WP_SITEURL', 'https://example.com' ); - Save and test. Once you can log in, you can fix the values under Settings → General and remove these two lines.
Step 5: Rule out plugins
SSL, redirect, cache and multilingual plugins can create loops. In File Manager, rename wp-content/plugins to plugins-off. If the site loads, rename it back and disable the plugins one by one from wp-admin to find the culprit. Then clear any cache plugin and the Cloudflare cache.
Frequently asked questions
Why did the error start right after I added Cloudflare?
Almost certainly the Flexible SSL mode. Switch it to Full (strict) as explained in Step 2.
Is the problem only on my computer?
If it works in incognito and on other devices, it was old cookies or a cached redirect on your browser. If it fails everywhere, the loop is on the site.
I fixed it but the admin panel still loops.
Clear your cookies for the domain and log in again. If you also changed the domain or HTTPS settings, check the two values in wp-config.php, and reset your password if needed with How to Reset Your WordPress Admin Password.