Mobile app version of vmapp.org
Login or Join
Goswami781

: 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

@Goswami781

Posted in: #Html #Seo #Sitemap

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>

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Goswami781

2 Comments

Sorted by latest first Latest Oldest Best

 

@Phylliss660

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.

10% popularity Vote Up Vote Down


 

@Alves908

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme