Catch-all CNAME to pages.dev, DNS and Redirects
Hello all!
Since the amount of redirect rules is limited, I've also tried making a Worker which handles this but it didn't quite work out cause you can't set a catch-all as a worker route.
Problem Description
I'm trying to set up my DNS, redirect rules (and even tried a worker) to be able to do the following in order of priority:- If DNS entry exists, immediately go to target (e.g. sub.example.com)
- If redirect rule for subdomain exists, redirect to appropriate page (e.g. twitter.example.com links to my Twitter account through redirect rules)
- If no DNS or redirect rule exists redirect to example.pages.dev
Since the amount of redirect rules is limited, I've also tried making a Worker which handles this but it didn't quite work out cause you can't set a catch-all as a worker route.