Posting this for anyone with “too many redirections” error when switching to Cloudflare nameservers. Root cause: SSL/TLS Mode Misconfiguration
In Cloudflare’s SSL/TLS settings, if you choose “Flexible SSL”, Cloudflare connects to your origin server using HTTP, while serving the visitor over HTTPS. If your origin server is configured to redirect all HTTP to HTTPS, a loop occurs:
Visitor → Cloudflare (HTTPS)
Cloudflare → Origin (HTTP)
Origin → Redirects to HTTPS → back to Cloudflare → and so on...
Fix: Log in to Cloudflare → SSL/TLS → Set mode to “Full” or “Full (Strict)”
Full = Cloudflare connects to your server using HTTPS.
Full (Strict) = Same, but requires a valid SSL certificate on your server (better option).
In Cloudflare’s SSL/TLS settings, if you choose “Flexible SSL”, Cloudflare connects to your origin server using HTTP, while serving the visitor over HTTPS. If your origin server is configured to redirect all HTTP to HTTPS, a loop occurs:
Visitor → Cloudflare (HTTPS)
Cloudflare → Origin (HTTP)
Origin → Redirects to HTTPS → back to Cloudflare → and so on...
Fix: Log in to Cloudflare → SSL/TLS → Set mode to “Full” or “Full (Strict)”
Full = Cloudflare connects to your server using HTTPS.
Full (Strict) = Same, but requires a valid SSL certificate on your server (better option).
Statistics: Posted by dontcoz — Sat May 10, 2025 7:00 am