When I create an xml sitemap using an online sitemap creator, it adds the following
<url>
<loc>http://www.mysite.co.uk/</loc>
<lastmod>2017-09-26T18:03:59+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>1.0000</priority>
</url>
<url>
<loc>http://www.mysite.co.uk/index.html</loc>
<lastmod>2017-09-26T18:03:59+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8000</priority>
</url>
This seems to add the same page twice, as the index.html is the same page as the domain name.
I don't want Google to class this as duplicate content
Do I need to add a canonical expression to my index.html page - like this?
<link rel="canonical" href="http://www.mysite.co.uk/ >
If I do that, do I remove this line from the sitemap?
<url>
<loc>http://www.mysite.co.uk/index.html</loc>
<lastmod>2017-09-26T18:03:59+00:00</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8000</priority>
</url>
The links to my homepage on all my other pages look like this
<a href="/index.html">Home</a>
Do I need to change these links so they read
<a href="http://www.mysite.co.uk">Home</a>
Any help would be appreciated
Thanks in advance
www.example.com/contact/
andwww.example.com/contact/index.html
display same thing, or it is only for home page?https://www.example.com
is your desired page thenhttp://197.241.215.194/
http://example.com
,http://www.example.com
would all need a canonical pointing to the page you prefer, or alternatively you can redirect.