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 'Full Strict'. In this way, after Cloudflare receive a secure request for your site, they will use another secure request over HTTPS to fetch it from its host server.

You can change the SSL Support settings from your cPanel -> Cloudflare -> Settings tab. Once you change the value, you need to allow a few minutes.

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

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Will Cloudflare affect my Google Analytics stats?

Having Cloudflare enabled for your website will not affect your Google Analytics stats....

Can Cloudflare protect my website from a DDoS attack?

If your website is experiencing a DDoS attack, then Cloudflare could help mitigate it. The...

Using Cloudflare shows Comodo SSL instead of the one I have on my server

If you enable Cloudflare for your domain name and set the SSL settings to Flexible, Full or Full...

I have enabled Cloudflare and I have an issue. What should I do?

When you enable Cloudflare, there should be no noticeable difference to your website. If your...

Waht sub-domains shouldn't I enable with CloudFlare?

Sub-domains on CloudFlare are marked with an orange cloud. Sub-domains not on CloudFlare are...