Home
/
Advanced Site Tools
/
Other
/
Why my website goes in a redirect loop after enabling Cloudflare?

Why my website goes in a redirect loop after enabling Cloudflare?

In case you use SSL with your website and you enabled Cloudflare, your website might go in a redirect loop.

This is because of how SSL Support is configured with Cloudflare. By default, it is set to ‘Flexible’. Flexible means that SSL requests for your website will reach Cloudflare, and Cloudflare’s servers will attempt to fetch your website over normal HTTP. 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 ‘Strict’. In this way, after Cloudflare receive secure requests for your site, they will use another secure request over HTTPS to fetch it from its host server.

To change the SSL Support settings, go to your Site Tools > Speed > Cloudflare > SSL Support. From the drop-down menu, change the value to Strict.

You can also read more about the different Cloudflare SSL Support options here.

Share This Article