1

My website is a single page and uses the anchor tags to navigate.

When I generated my sitemap using an online tool, it generated 2 URLs:

<url>
  <loc>https://www.example.com/</loc>
  <lastmod>2018-01-27T19:56:44+00:00</lastmod>
  <priority>1.00</priority>
</url>
<url>
  <loc>https://www.example.com/index.html</loc>
  <lastmod>2018-01-27T19:56:44+00:00</lastmod>
  <priority>0.80</priority>
</url>

Should I go through and add in my other pages (links / sections of the page) i.e. https://www.example.com/#features-list, or will Google count that as a dupe because of index.html?

  • I would say no for one simple reason. You do not need a sitemap! Plain and simple. If your one page site is indexed, then the sitemap is of no value whatsoever. Sitemaps are not what most SEOs tell you they are. For most all sites, they are not only unnecessary, but a distraction. Delete any sitemap. You are wasting your time and energy. Cheers!! – closetnoc Jan 28 '18 at 18:25
  • 2
    And you don't need an entry for both / and /index.html - that is presumably the same page? (How did the sitemap generator find index.html?) – DocRoot Jan 28 '18 at 19:24
  • Not sure, I just entered my website address: xml-sitemaps.com – webnoob Jan 28 '18 at 19:48
  • 1
    Do your fragment URLs that have a hash show different content to users? – Stephen Ostermiller Jan 29 '18 at 17:53
  • 1
    I've removed the index.html version now and just left the first one in place. Yes, they do - although the URL doens't change (it's handled via JS). You can visit the links via the anchor and still get to the content i.e myserviceplanner.com/#about – webnoob Jan 29 '18 at 17:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.