ERR_TOO_MANY_REDIRECTS: What It Means and How to Fix It
You click a link, the page starts loading, and then the browser gives up with: This page isn't working. example.com redirected you too many times. Try deleting your cookies. ERR_TOO_MANY_REDIRECTS Firefox shows the s
You click a link, the page starts loading, and then the browser gives up with:
This page isn't working. example.com redirected you too many times. Try deleting your cookies. ERR_TOO_MANY_REDIRECTS
Firefox shows the same problem as "The page isn't redirecting properly," and Safari says "Too many redirects occurred trying to open" the page.
What ERR_TOO_MANY_REDIRECTS Means
ERR_TOO_MANY_REDIRECTS means the page is stuck in a redirect loop. URL A sends the browser to URL B, and URL B sends it back to URL A, or the chain goes in a circle through more steps. Browsers stop after about 20 redirects and show this error instead of looping forever.
The server is reachable and responding. The problem is that its redirect rules contradict each other.
The Short Version
- If you're a visitor: clear the cookies for that one site, then try an incognito window. If it still fails, the problem is on the website's side.
- If it's your site: run the URL through a redirect checker to see the loop, then check the six causes below. The most common one is Cloudflare's "Flexible" SSL mode combined with an HTTPS redirect on the server.
Fix It as a Visitor
- Clear cookies for that site only. A stale cookie can send you to a login or language page that redirects back.
- Try an incognito window. If it works there, it was your cookies or cache. If not, it's the site.
- Disable browser extensions. HTTPS-forcing or privacy extensions can fight with the site's redirects.
- Check your device's date and time. A wrong clock can break HTTPS sessions.
If none of this works, only the site owner can fix it.
Find the Loop (Site Owners)
Before changing anything, see where the loop happens. A redirect checker lists every hop with its status code:
| Hop | URL | Status |
|---|---|---|
| 1 | http://example.com |
301 → https://example.com
|
| 2 | https://example.com |
301 → http://example.com
|
| 3 | http://example.com |
301 → https://example.com
|
When the same two URLs keep swapping, one rule forces HTTPS and another forces HTTP.
The 6 Most Common Causes
1. Cloudflare "Flexible" SSL + an HTTPS redirect on the server
In Flexible mode, Cloudflare talks to your server over plain HTTP. Your server redirects to HTTPS, Cloudflare requests HTTP again, and the loop never ends.
Fix: Cloudflare → SSL/TLS → Overview → set Full or Full (strict). Your server needs a valid certificate. You can confirm it with an SSL checker.
2. Conflicting HTTP/HTTPS rules
.htaccess, Nginx, the hosting panel and the CMS can each force HTTPS. If one forces HTTP, they loop.
Fix: keep only one HTTPS redirect.
3. www and non-www pointing at each other
One rule sends example.com to www.example.com, and another sends it back.
Fix: pick one version, then make the CMS, server config and CDN agree.
4. Wrong site URL in WordPress
Fix: set the correct URL in wp-config.php:
define('WP_HOME', 'https://example.com');
define('WP_SITEURL', 'https://example.com');
Behind a proxy or load balancer, also add:
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
$_SERVER['HTTPS'] = 'on';
}
5. A plugin redirect
Fix: rename wp-content/plugins over FTP, check the site, then re-enable plugins one at a time.
6. Old redirects after a migration
Fix: list your redirect rules and test each one. This site migration checklist covers planning redirects.
After You Fix It
- Re-run the redirect checker. You want one or two hops ending in 200.
- Use 301 for permanent moves, not 302 (why it matters).
- Confirm the final page returns 200 with an HTTP status code checker.
- Clear your CMS, server and CDN caches.
FAQ
Is it my fault or the website's? Usually the website's, if clearing cookies and incognito don't help.
How many redirects trigger it? About 20 in Chrome and Firefox. A healthy page needs one or two.
Does it hurt SEO? Yes. Search engines can't index a page stuck in a loop.
Does Cloudflare cause it? Often, when SSL is set to Flexible and the server also forces HTTPS.
Originally published at Web Tools Realm.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.