: HTML Sitemap URL format When adding a html sitemap to a site, for SEO purposes should the links it contains be locally referenced or is it better to use the full URL? Eg: <ul> <li><a
When adding a html sitemap to a site, for SEO purposes should the links it contains be locally referenced or is it better to use the full URL?
Eg:
<ul>
<li><a href="/company/about-us.html">About Us</a></li>
<li><a href="/company/environmental-policy.html">Environmental Policy</a></li>
<li><a href="/company/recruitment.html">Recruitment</a></li>
<li><a href="/company/faqs.html">FAQs</a></li>
</ul>
or
<ul>
<li><a href="http://www.mydomain.com/company/about-us.html">About Us</a></li>
<li><a href="http://www.mydomain.com/company/environmental-policy.html">Environmental Policy</a></li>
<li><a href="http://www.mydomain.com/company/recruitment.html">Recruitment</a></li>
<li><a href="http://www.mydomain.com/company/faqs.html">FAQs</a></li>
</ul>
More posts by @Goswami781
2 Comments
Sorted by latest first Latest Oldest Best
The accepted answer is correct for XML sitemaps, but as per your comment, your question was about a HTML sitemap.
There is no particular reason to use full URLs in HTML sitemaps. Either of your code examples would be fine, although the first (that uses absolute paths) would be my personal preference.
Sitemap URLs must be absolute.
From: support.google.com/webmasters/answer/183668
You must fully specify URLs, as Google attempts to crawl them exactly as provided.
As a side note, sitemaps do not effect SEO.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.