search-engine - url 顺序在 XML 站点地图中是否重要?

标签 search-engine sitemap web-crawler

对于搜索引擎和网站爬虫,URL 顺序在 XML 站点地图中是否重要?

目前,当生成站点地图时,我使用数据库中的唯一 ID 按顺序排列网站 url。我应该按日期顺序订购网址吗?

顺序站点地图

<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>

订购日期 网站 map
<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>

最佳答案

经过一番搜索后,我在 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.

关于search-engine - url 顺序在 XML 站点地图中是否重要?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1274974/

相关文章:

php - 如何使精确关键字搜索首先出现?

xml - Sitemap.xml 对访问者隐藏

performance - Nutch 1.12和Elasticsearch 1.4.1性能需求

python - 如何每五分钟下载一个网页?

html - scrapy - 如何从 'div' 获取文本

python - 可以使用 REST 服务的开源搜索 UI 项目

solr - 我想用Solr/Lucene构建一个搜索引擎

indexing - 为什么 Google(或 Googlebot)会索引一个返回 500 错误的页面?

angularjs - 将动态站点地图添加到 angularJS 应用程序

PHP MySQL 生成多个 xml 站点地图索引