Page Rule for each Subdomain www to non www


is there a all-in-one rule for redirecting each www.subdomain.example.tdl to subdomain.example.tld

e.g. www.first.example.tld to first.example.tld and www.second.example.tld to second.example.tld.

And thats with one Rule?

If you’re using HTTPS, then no. Unless you have the $10/month dedicated TLS certificate with custom hostnames. Regular certificates won’t cover www on a subdomain, so Cloudflare won’t proxy it on HTTPS.

If you’re not using HTTPS (or have that special TLS certificate), have you tried a Match for www.** with a forward to $$2

1 Like

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