Hide netlify domain and only use custom domain?

Hi, I’ve set up a custom domain for a site, which is working perfectly, however I want to have that as the only avaliable domain for the site, and no longer use the .netlify.app one.

Is it possible to do this? If I’m being blind and missing the docs for this then apologies!

Thanks in advance.

What you’ll want to do is the same as this!

A redirect rule in your _redirects or netlify.toml file:

https://your-netlify-subdomain.netlify.app/* https://customdomain.com/:splat 301!

Our redirects docs will cover the syntax I’ve used in this example! :smile:

Excellent, I’ll give this a go, thank you!

1 Like