Redirecting *.domain.com to www.domain.com

I have a website set up. I just want to make sure that traffic to any subdomains that I am not using is redirected to main website. Say, I am using www.domain.com, web.domain.com and use.domain.com and have set up DNS records for them accordingly. Now, traffic to these subdomains should remain normal but visitors of any other subdomains whatsoever should be redirected to www.domain.com.

I have tried using A and CNAME wildcards but this does not seem to work. What should I do?

Thanks in advance for your help!

You can create a wildcard record, but can’t be proxied on non-Enterprise, so you’d need a server to handle the redirects.

1 Like

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