wyles
September 16, 2020, 5:17pm
1
We are preparing to migrate a site from one provider to Netlify and we have some concerns about SEO in regards to duplicate content.
So I have some questions about this:
Is the correct way to force a 301 redirect from the netlify domain to redirect and set https://www.example.co.uk/ as the cannonical?
https://example.netlify.app/ * https://www.example.co.uk/:splat 301!
Would the *.netlify.app or *.netlify.com subdomains show up in Google (even via site:netlify.app in Google Search?)
Is it possible to set the live *.netlify.app domain only to not index (via a robots tag) and the the domain www.example.co.uk to be indexed in Google?
Thanks.
@wyles Welcome to the Netlify community.
Does this help?
Hi all,
Next Monday, March 30th, we’re going to make a change to improve SEO in sites that have configured a custom domain. I want to tell you a little bit more about it before we roll it out.
Every time you create a new Netlify site, we assign a subdomain for it in our primary domain, netlify.com , for example happy-wozniak-23hdl3.netlify.com . As you might already be aware, on April 14 2020, we’re changing that domain to netlify.app , so that previous example will become happy-wozniak-23hdl3…
1 Like
wyles
September 17, 2020, 5:09am
3
Hey @gregraven I’ve had a look at the post, but it doesn’t seem like that post answers my conerns about 2. and 3. of my question.
@wyles I think the point is that with the correct canonical information on each page, Google may see the content under different URLs but it won’t index it, deferring to the canonical version.
Also, you can set up either your Netlify settings or other DNS or _redirects to point all traffic to the URL / domain of your choosing. You don’t have to be at the tender mercies of Google to do things the way you want, you can actually influence the outcome yourself.
1 Like
talves
September 21, 2020, 11:25pm
5
Here is a good explanation of the canonical tag and 301 redirects and how they apply.