404 redirect for subdomains

I would like to configure the following feature: in case of a subdomain that does not exist, cloudflare redirects the user to the main page. I have configured a redirect rule to exclude all existing domains. So: Redirect to page: astoria.studio if: - Address is not api subdomain - Address is not download subdomain ... etc. Unfortunately, this doesn't work. If you type e.g. - kjwevhfouqwb.astoria.studio, - blablabla.astoria.studio, the user is NOT redirected to the home page. How to configure this feature?
No description
3 Replies
chelminski
chelminskiOP•3mo ago
Pls ping me if you have any solution 🥺
Chaika
Chaika•3mo ago
Please don't use URL Fulls with Start with, use Hostname and is not in and type out your list of just raw hostnames like api.example.com and add option, repeat until has all For it to work as well you need a wildcard proxied record AAAA * 100:: Proxied, create, wait a bit, try on a random domain, should be set. Wildcard get slightly messy though. For example if discord exists in any capacity, even just a TXT, then anything under it like gihgiohgiohg.discord.example.com won't redirect unless you make *.discord.example.com
chelminski
chelminskiOP•3mo ago
It works! Thank you very much!
Want results from more Discord servers?
Add your server