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.htmldisplay same thing, or it is only for home page? – Goyllo Sep 27 '17 at 08:47https://www.example.comis your desired page thenhttp://197.241.215.194/http://example.com,http://www.example.comwould all need a canonical pointing to the page you prefer, or alternatively you can redirect. – Simon Hayter Sep 27 '17 at 13:00Replaced all link to home page with href="/"
Removed
I didn't do a 301 redirect as I was worried about the repercussions if I did it wrong
Thanks again to all who responded for for your help and time
– Joel Sep 29 '17 at 16:49