StudioB
StudioB

Reputation: 127

Q: Sitemap XML - Should I include the #Section links of my single-page website?

As the title suggests, I have a Website that is a single-page Site (homepage url only) for web design services purposes, with all of the menu links pointing to each of the #Sections on the main homepage itself.

Question: Should I include these #Section URL's in my website's Sitemap XML file?
Or, should I only list the primary domain name homepage of the site, and thats it?

Bonus Question: When linking to each Section via links in my Navbar, what format should I use?
Example: Either, www dot mydomain dot com / #SectionID(with the slash), OR
should I rather use www dot mydomain dot com #SectionID (without the slash)..?

Thank you in advance for help clarifying the correct answers to these questions!

Upvotes: 5

Views: 1303

Answers (1)

BenMorel
BenMorel

Reputation: 36574

You should not include hashes in your sitemap, as already answered here. So your sitemap should contain a single entry. Do you even need a sitemap then? Although it doesn't hurt, it will probably make no difference.

As for the bonus question, when linking to your page, you should include the slash before the hash, the / part is the path that needs to be present in every URL.

Check this URL validator: http://formvalidation.io/validators/uri/

Upvotes: 6

Related Questions