Optimal number of URLs in sitemaps URLset

我怕爱的太早我们不能终老 提交于 2019-12-12 02:53:53

问题


I’m trying to find the best approach to create my sitemap (I deal with a huge number of URLs).

I have an XML Sitemap with a tree-structure, it’s composed of many sitemap.xml. Actually I have max 1000 URLs for each sitemap.xml.

What's the optimal number of urls for each sitemap.xml? Does Google prefers a larger number of URLs (greater than 1000), or less URLs distributed in more XML files?


回答1:


From the sitemaps.org protocol specification:

You can include up to 50,000 URLs in each Sitemap file:

[…] each Sitemap file that you provide must have no more than 50,000 URLs and must be no larger than 10MB (10,485,760 bytes)

[…]

If you want to list more than 50,000 URLs, you must create multiple Sitemap files.

You can link up to 50,000 Sitemap files in each Sitemap index file:

Sitemap index files may not list more than 50,000 Sitemaps and must be no larger than 10MB (10,485,760 bytes) […]

You can have multiple Sitemap index files (no limit stated):

You can have more than one Sitemap index file.




回答2:


I was experiencing the exact same issue, I dealt with 80k+ URLs in my WordPress website.

Previously I was providing 5000 URLs in each sitemap. It was resoursce hunger & Google was not crawling it suffecinotly. Then I made 2000 URLs each sitemap then crawling rate became somewhat okay. Then I decided to make 1000 URLs each sitemap & within 2 days my crawling rate became very good. within 10 days 95% of the URLs were indexed.

So, I would say go with 1000 or lower.



来源:https://stackoverflow.com/questions/35175869/optimal-number-of-urls-in-sitemaps-urlset

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!