Redirect domain.netlify.app to domain.com

Hi guys, I have a problem I am trying to index my website with google search console, I already did it with my netlify subdomain, but now I changed my domain so I am using the Google Search Console Change Tool, but the problem I don’t know how to redirect from .netlify.app to .com and this is the error:

So what should I do now?

Hi @byNico1,

Are you able to translate this website to English so everybody can understand the screenshot? :grin:

Gr,

Andy

1 Like

Is there a way to make the domain.netlify.app domain to redirect to domain.com because I think that is the solution I don’t know

Hey @byNico1,

Are you using a netlify.toml file?

Then redirect like this:

[[redirects]]
from = "https://yourname.netlify.app/*"
to = "https://www.yourname.com/:splat"
status = 301
force = true

Gr,

Andy

1 Like