Way to disable/redirect all others subdomains

I have set up my domain and one subdomain. Fact it, if i enter anything.domain.net, it will show the main page (same as www.domain.net).
Is there any way to disable all the OTHERS subdomain, or redirect them (meaning that it will also change the URL) to the www one ?
I’ve tryed to add a page rule, but no success.

I’ve seen some answears but they’re about .htaccess. I think there is a way to do this on Cloudflare without editing any .htaccess file…

Thanks !

You probably have a DNS record with the name set to asterisk (*), i’d recommend removing that one. After doing this you should wait a few minutes (usually within an hour) to see this work.

This topic was automatically closed after 31 days. New replies are no longer allowed.