I have a website, say example.com and require CloudFlare to redirect all traffic from http to https for loads of wildcard subdomains (inc. www); AND the apex (i.e. @ or /) but NOT for for a set of subdomains which are actually CNAMES to 3rd party services for which https is not acceptable e.g.
http://mail.example.com
http://calendar.example.com
http://drive.example.com
http://xyz.example.com
Run Code Online (Sandbox Code Playgroud)
N.B Redirecting to the https protocol for those is not viable as it's not supported by those 3rd party services.
Looking into …