is possible to bypass HTTP > HTTPS redirection together with HSTS enabled via page rules?
I have some zip file located: http://example.com/public/FilesFolder/Zip_File.zip. If I try to download that file I will get redirected to https. But I need to use http for this specific URL because I’m running NSIS installer which can download by default only via HTTP.
“Automatic HTTPS rewrites” is the setting for replacing http:// links in the HTML with https://, it’s not the setting for Cloudflare’s http → https redirect for requests themselves.
That would be the “always use HTTPS” setting - which can’t be disabled on a per-request basis (can only be enabled on a per-request basis) - since it doesn’t have a toggle when used in page rules.
Since only one page rule can apply per URL, your first “dummy” page rule would apply, and not the second one, making it so CF doesn’t perform the 301 redirect. All other matches would hit the second page rule though, and be redirected to https.
As for your use case
But I need to use http for this specific URL because I’m running NSIS installer which can download by default only via HTTP.
If you use INetC, it uses Internet Explorer which does support HTTPS urls
I searched before for INetC, but for me it’s hard to re-distribute and pack new application to end users. I will need to repack whole installer for our game server as well. That’s why I was looking for the workaround and you solved it!