Error library

ERR_TOO_MANY_REDIRECTS after adding Cloudflare

Visitors get stuck in a redirect loop, most commonly because Cloudflare's SSL/TLS mode is Flexible while the origin redirects HTTP to HTTPS. Set the encryption mode to Full (or Full strict) with a valid origin certificate, or remove the conflicting redirect.

Cause: SSL/TLS encryption mode conflicts with origin redirects, or redirect rules conflict.

How to fix it

  1. Check SSL/TLS > Overview encryption mode.
  2. If Flexible and the origin forces HTTPS, switch to Full or Full (strict).
  3. Review Always Use HTTPS, HSTS and redirect rules for conflicts.
  4. Clear cookies/cache and test in a private window.

Example

Illustrative example, not from a customer project.

  SSL/TLS encryption mode
- Flexible
+ Full (strict)

FAQ

Why did it start after moving DNS to Cloudflare?

Flexible mode talks to your origin over HTTP; if the origin redirects to HTTPS, it loops.

Firefox shows a different message.

Cloudflare's docs mention 'The page isn't redirecting properly' as the equivalent.

Get a $149 diagnosis See pricing Launching soon? The Launch Path gets you ready for $1,195 flat.

$149Get a $149 diagnosis