"Too Many Redirects" Error

Category: Errors & Troubleshooting ยท Updated 2026-11-11

The "too many redirects" error (shown as ERR_TOO_MANY_REDIRECTS in Chrome or "the page isn't redirecting properly" in Firefox) happens when a browser is sent back and forth between the same URLs, or in a longer loop, without ever reaching a final page. It is almost always caused by conflicting redirect rules, most commonly a mismatch between HTTPS settings in the CMS, server configuration, and a CDN or proxy like Cloudflare sitting in front of the site. Fixing it means finding and correcting whichever layer is sending the browser back where it came from.

What is actually happening

A redirect tells a browser "the page you want is actually somewhere else, go there instead," using an HTTP status code like 301 or 302. Normally a browser follows one or two redirects and lands on a final page. A redirect loop happens when page A redirects to page B, and page B redirects back to page A (or to itself, or through a longer chain that eventually circles back). Browsers cap the number of redirects they will follow, so instead of looping forever, they stop and show an error.

Common causes

  • HTTPS mismatch with a CDN: Cloudflare or another proxy set to "Flexible" SSL talks to the origin server over plain HTTP, but the origin server is separately configured to force a redirect to HTTPS, so each side keeps bouncing the request to the other protocol.
  • CMS forcing HTTPS while the server also forces it: a WordPress setting, plugin, or wp-config.php rule forces HTTPS while an .htaccess rule does the same thing with a conflicting condition, creating a loop between the two.
  • Wrong site URL in the database: WordPress's siteurl or home values pointing to a different domain or protocol than what the server actually serves.
  • Stale browser cookies or cache: an old cached redirect rule or session cookie referencing a URL structure that no longer matches the current configuration.
  • Conflicting plugin or app-level redirects: a security or SEO plugin redirecting to HTTPS or to a canonical domain while another part of the stack redirects the opposite way.

How to diagnose it

Start by identifying which layers are involved: CDN/proxy, web server config, and the application (CMS or code). A command-line check shows the redirect chain directly:

curl -IL https://example.com

# Look for repeating Location: headers pointing back and forth, e.g.:
# Location: http://example.com/
# Location: https://example.com/
# Location: http://example.com/   (loop)

If the same URL (or pair of URLs) keeps appearing in the Location header, that confirms a loop and shows exactly which URLs are bouncing between each other.

Typical fixes

  1. If using Cloudflare or another CDN, set the SSL/TLS mode to Full or Full (strict) instead of Flexible, so the proxy and origin server agree on using HTTPS end to end.
  2. Check .htaccess or server config for duplicate or conflicting HTTPS redirect rules, and remove redundant ones.
  3. In WordPress, confirm the Site Address (URL) and WordPress Address (URL) settings under Settings > General match the actual domain and protocol being served.
  4. Temporarily disable SEO, security or caching plugins one at a time to find one that's forcing a conflicting redirect.
  5. Clear browser cookies and cache for the domain, since a loop can sometimes persist locally even after the server-side cause is fixed.

Frequently asked questions

Does the too many redirects error happen only to me, or to everyone visiting the site?

If it is caused by a server, CDN, or CMS misconfiguration, it affects every visitor. If it only happens on one device, outdated browser cookies or a cached redirect on that device are the more likely cause.

Why does this error often appear right after adding Cloudflare?

It usually means Cloudflare's SSL mode is set to "Flexible" while the origin server separately forces HTTPS, so requests bounce between HTTP and HTTPS. Switching Cloudflare's SSL mode to "Full" or "Full (strict)" typically resolves it.

Can clearing cookies fix a too many redirects error?

Sometimes, if the loop was caused by a stale cookie or cached redirect rather than an ongoing server misconfiguration. If the error returns immediately after clearing cookies, the underlying cause is still server-side.

Is this the same as a 301 or 302 redirect error?

A 301 or 302 is a single, normal redirect status code, not an error by itself. The "too many redirects" error only appears once a chain of these redirects loops back on itself instead of reaching a final page.

Can a WordPress plugin cause a redirect loop?

Yes, security or SEO plugins that force HTTPS or a canonical URL can conflict with server-level redirect rules or with each other, producing a loop. Disabling plugins one at a time usually isolates the culprit.

How many redirects does a browser allow before showing this error?

This varies by browser, but most stop following a chain somewhere around 20 redirects. A true loop will hit that limit almost immediately since the same URLs keep repeating.

Related topics