SSL for virtual subdomains wildcard

I have wildcard virtual subdomains, all pointing to 1 root directory. I try to enable SSL for these subdomains and it works, but without www in the address. So I created a rule to automatically remove www from the address of all subdomains. It turned out that the rule only works when there is a valid certificate, so it doesn't work.

To sum up: for the certificate to work, you need to remove www, and to remove www, you need to provide a certicate. It looks like a catch-22 🙂

Is there any way to make this work on Cloudflare?

And if not, is it even possible to achieve this with Advanced Certificate Managed in a simple way?

Thanks in advance 🙂
Was this page helpful?