However, it might be easier to manage this with two rules: one to redirect HTTP to HTTPS and another one to redirect subdomain to root — both are available as one-click templates from Rules > Templates tab in the dashboard.
thanks. I was hoping for bit more dynamic, so I wouldnt need to specify the apex domain as a string, but also do this with one rule, same as I do at the origin, as that’s the purpose here, just to redecuse the amount of non-https and www requests to the origin (and subsequent 301’s)
I have a lot of zones/domains so this is something i was hoping to push out via API.
I would have thought these 2 rules are one off the most commonly deployed so it surprises me that it’s not a bit easier to implement.