Cloudflare SSL mode and WordPress redirect loops

cloudflarewordpressapachehosting

“Too many redirects” usually means WordPress thinks it’s HTTP while Cloudflare is serving HTTPS (or the reverse). This guide walks through what to align so the loop stops.

Symptoms

Quick checks

Fix pattern

FAQ

What Cloudflare SSL mode should I use with a valid origin cert?
“Full (strict)” when the origin has a valid TLS cert Cloudflare trusts. “Full” if the origin has a cert but you can accept Cloudflare not verifying it. Avoid “Flexible” when the origin expects HTTPS.

Do I need to change WordPress URLs?
If Site URL or Home URL are set to http:// but visitors hit https://, WordPress may redirect to HTTP and Cloudflare back to HTTPS. Update the URLs in the database (or via wp-config) to https:// and clear caches.