HTTP redirection to HTTPS stop working on all our websites

We’ve been working with Cloudflare for a long time and HTTP to HTTPS redirects have always worked.
Everything stopped working last week…

When we pause Cloudflare, the site is accessible in HTTP and HTTPS. As soon as we activate Cloudflare, the site is only accessible in HTTPS and HTTP no longer redirects. The site goes into timeout…

Check if Always Use HTTPS (SSL/TLS > Edge Certificates) suddenly got toggled off for your site.

Thanks for you help Allan… but unfortunately it’s been active for a very long time… what’s really strange is that it’s been working for years on all our sites (over 30)… and suddenly nothing! If I set Cloudflare to Pause, http (port 80) works…

Do you see any Cloudflare error? Which error?

No Cloudflare error… just an HTML timeout

The site is being redirected to https.

curl -Ikv http://www.tokilab.ca
*   Trying [2606:4700:3037::ac43:c518]:80...
* Connected to www.tokilab.ca (2606:4700:3037::ac43:c518) port 80 (#0)
> HEAD / HTTP/1.1
> Host: www.tokilab.ca
> User-Agent: curl/8.1.2
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
HTTP/1.1 301 Moved Permanently
< Date: Fri, 22 Sep 2023 19:02:18 GMT
Date: Fri, 22 Sep 2023 19:02:18 GMT
< Connection: keep-alive
Connection: keep-alive
< Cache-Control: max-age=3600
Cache-Control: max-age=3600
< Expires: Fri, 22 Sep 2023 20:02:18 GMT
Expires: Fri, 22 Sep 2023 20:02:18 GMT
< Location: https://www.tokilab.ca/
Location: https://www.tokilab.ca/
< Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=LW2bixyf9afdZ86bxDVZej5Twg40vhhbMRsNUUwDxUwUhr6S8g6HmSEcSWLWP%2Bk8xEaj7y7EtwYRQAklw45rJO6PrHRKiHnIPp7G1CWQFxHcCMKBujW0SuY4wlzKzWCWynFqONqDcn44v4%2FGHw%3D%3D"}],"group":"cf-nel","max_age":604800}
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=LW2bixyf9afdZ86bxDVZej5Twg40vhhbMRsNUUwDxUwUhr6S8g6HmSEcSWLWP%2Bk8xEaj7y7EtwYRQAklw45rJO6PrHRKiHnIPp7G1CWQFxHcCMKBujW0SuY4wlzKzWCWynFqONqDcn44v4%2FGHw%3D%3D"}],"group":"cf-nel","max_age":604800}
< NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
< Server: cloudflare
Server: cloudflare
< CF-RAY: 80accd2c5d8167e7-MIA
CF-RAY: 80accd2c5d8167e7-MIA

It also appears to load correctly for me. So there may be an issue with either your connection to Cloudflare or it’s to your origin, but it’s not http to https redirection that is the issue.

2 Likes

Indeed you don’t seem to have this problem… if we try from several places in Canada, here is what we get as error… indeed it doesn’t seem to be a redirection error…

curl -Ikv http://www.tokilab.ca
*   Trying 172.64.80.1:80...
* connect to 172.64.80.1 port 80 failed: Operation timed out
* Failed to connect to www.tokilab.ca port 80 after 74992 ms: Couldn't connect to server
* Closing connection 0
curl: (28) Failed to connect to www.tokilab.ca port 80 after 74992 ms: Couldn't connect to server

Is it accessible over https but not http or inaccessible generally?

Yes in https everything works… only in http we have nothing…

These locations you are testing from… they are on a corporate network or you’ve asked someone to test from their home ISP?

Both…
Some of our client (from home and corporate network) calling us about the redirection problem.
We tested 10 different origins

Thanks for your help @cscharff

Looks to me something is blocking it when the traffic is going through Cloudflare. Just like @cscharff I can load your site just fine.

Today, everything works fine on every website !
Without changing anythings… is it a Cloudflare Issues ?