Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the url order matter in a XML sitemap?

For search engines and website crawlers, does the url order matter in a XML sitemap?

Currently when the sitemap is generated, I order the website urls sequentially using a unique id, in the database. Should I order the urls in date order?

Sequential Sitemap

<urlset>
 <url>
  <loc>http://example.com/</loc>
  <lastmod>2009-08-14</lastmod>
 </url>
 <url>
  <loc>http://example.com/article/1/about_us</loc>
  <lastmod>2009-07-14</lastmod>
 </url>
 <url>
  <loc>http://example.com/article/2/contacts</loc>
  <lastmod>2009-08-09</lastmod>
  </url>
</urlset>

Date Ordered Sitemap

<urlset>
 <url>
  <loc>http://example.com/</loc>
  <lastmod>2009-08-14</lastmod>
 </url>
 <url>
  <loc>http://example.com/article/2/contacts</loc>
  <lastmod>2009-08-09</lastmod>
  </url>
 <url>
  <loc>http://example.com/article/1/about_us</loc>
  <lastmod>2009-07-14</lastmod>
 </url>
</urlset>
like image 701
stukelly Avatar asked Aug 13 '09 22:08

stukelly


1 Answers

After some more searching I found an answer on the FAQ at sitemaps.org.

Q: Does position of a URL in a Sitemap influence its use?

No. The position of a URL in the Sitemap is not likely to impact how it is used or regarded by search engines.

like image 69
stukelly Avatar answered Oct 14 '22 20:10

stukelly