My website goes into a redirect loop after enabling Cloudflare

If you use SSL on your website and you have enabled Cloudflare, your website may go into a redirect loop.

This happens because of how the way SSL Support is configured with Cloudflare. By default, SSL connections are set to ‘Flexible’. Flexible meaning that SSL requests for your website will reach Cloudflare, and Cloudflare’s servers will attempt to fetch your website over a normal HTTP connection. If your website is configured to open up via HTTPS this can create a loop.

To resolve the issue you need to change SSL Support for your website from ‘Flexible’ to ‘Full Strict’, this way after Cloudflare receives a secure request for your site, it will use another secure request over HTTPS to fetch it from its host server.

You can also read more about the different Cloudflare SSL encryption modes here.

WordPress Maintenance from £20.00/month

Tired of bloated maintenance plans that don’t fit your site? Get expert WordPress support that’s built around you. No lock-ins, no unnecessary extras - just solid, technical care from £20 a month. Choose what you need, skip what you don’t, and keep your site running exactly as it should.

Get Started