Why do I get a redirect loop when I turn off HTTPS?

I am trying to create a website with SSL/HTTPS turned off.

I uploaded HTML, JS, and CSS files to Cloudlfare Pages. Then I linked up the custom domain heapsbetter.com. And finally I changed these settings in Cloudflare to turn off HTTPS:

  • SSL/TLS encryption mode is Off
  • HTTP Strict Transport Security (HSTS) is Off
  • Automatic HTTPS Rewrites is Off
  • Universal SSL is Disabled

Also there are no Page or Configuration rules setup.

I thought this would create a website with SSL turned off, but actually it just creates a redirect loop so that the website never loads.

And I have read this help article about redirect loops, but none of that applies in this case: https://developers.cloudflare.com/ssl/troubleshooting/too-many-redirects/

Can someone take a look to see what is wrong?

The configuration should be all right, but it seems as if your server redirects to HTTPS. Can you check that, respectively pause Cloudflare?

When you say “pause Cloudflare” I think you mean Websites > heapsbeter. com > Pause Cloudflare on Site. I have tried that and the redirect remains.

I think the problem stems from the fact that Cloudflare Pages (where the site is hosted) still has SSL turned on. And I can’t see where to turn that off.

So how do I turn off SSL for Cloudflare Pages?

See a screenshot of the Cloudflare Pages Custom Domains tab here:

This question came up here recently, and while I cannot find the topic to confirm, as far as I know, you don’t.

Can it be done using a Worker?

I found the previous topic.

Conceptually it seems like it should be possible, but I don’t know enough about Workers to answer more confidently than a solid maybe.

That’s an important detail. Pages always have HTTPS enabled and you can’t disable that.

As for Workers, those do not enforce HTTPS and you can do whatever you want. Whether you really want to run a whole page via them, is a different question of course.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.