Prevent Google from indexing default ___.netlify.app domain when using a custom domain

Hey @MarcFuSa

Let me short circuit the conversation here — Netlify will automatically send back a canonical Link header for any site that is using a custom domain but which receives a request at their ___.netlify.app automatically-assigned domain. You don’t need to do anything on your end.

If you want even more redirection, you can setup a custom redirect that would look like (toml format):

[[redirects]]
  from = "https://jonsully.netlify.app/*"
  to = "https://jonsully.net/:splat"
  force = true

To force all traffic to your primary domain in the first place. This is what I do for my site (example above is live), but it’s unnecessary and does not impact SEO one way or another thanks to Netlify automatic Link header.

Hope that helps :slight_smile:


Jon

P.S. I adjusted this post’s title to better fit / clarify the use-case for future searchers :netliheart: