Redirecting all subdomains to main domain except one

Hi,
I want to set a page rule like *.example.com 301 redirect to example.com except only one subdomain “xyz.example.com” shouldn’t be included. How can i do this?

Best regards.

You’d have to add a dummy page rule for just that one subdomain so it matches first. Something like: Match xyz.example.com/* with a Setting for Cache Level (Standard). You probably already use the default Standard caching level for your zone, so that page rule doesn’t change anything.

1 Like

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