"Virtual subdomain" Transform Rules

I'd like to use Transform Rules to catch any requests to any subdomain on a domain managed by Cloudflare and dynamically transform the URL and redirect to something like https://domain.tld/subdomain. Ideally, I'd like to do this without having to create DNS entries for each subdomain... is this possible? My hunch is that this might not be possible, but wanted to check I'm not missing something.
2 Replies
Hello, I’m Allie!
It should(™️) be fine? You can create a wildcard record with a *, then use a Redirect Rule(though I’m not 100% how easy/possible it is to isolate the subdomain and convert it to a path).
scruffy
scruffy15mo ago
Excellent! The Wildcard DNS record was the missing piece; once that was sorted, my Page Rules kicked in. Thanks for your help 🙂
Want results from more Discord servers?
Add your server