Cloudflare not performing http -> https rewrites

As stated in the title, Cloudflare does not seem to be rewriting my non-https traffic to https.
My DNS records are as follows:

CNAME www myapp.ondigitalocean.app (proxied)
CNAME @ myapp.ondigitalocean.app (proxied)
A api myip (proxied)

With a page rule:

mydomain.com/*
Forwarding URL
(Status Code: 301 - Permanent Redirect, url: https://www.mydomain.com/$1)

And my SSL settings:

SSL/TLS encryption mode: Full
Always Use HTTPS: On
Automatic HTTPS Rewrites: On

As far as all the configuration seems, I don’t see any problems with it? Yet, none of my non-https requests are being rewritten to https requests.

Note: it seems to perform the rewrites for my subdomain api.mydomain.com but not for any other.

Can you please post the real uncensored PageRule, so we can have a look at?

Thanks!

Should be Full Strict.

1 Like

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