我有一个动态网站,有许多(嗯,少于50)用户。允许每个用户创建任意数量的页面。我知道你可以在sitemap.xml中列出多少页是有限度的,现在我还在这个限制之下,但是我想知道让搜索引擎知道的最好方法是什么(全部?)关于我的用户页面,而仍然在这个限制之下,即使我有更多的限制。
发布于 2010-07-09 00:08:27
sitemap文件的限制是每个站点地图有5万URL和10 10。可以使用gzip压缩站点地图,从而减少带宽消耗。支持多个sitemap文件,其中一个Sitemap索引文件作为总共1000个站点地图的入口点。
注意,您可以指定robots.txt文件中的多个站点地图:
如果您遇到了限制,可能会以某种方式将您的用户划分开来。假设每个用户的一块urls不超过10,000个urls,您可以将其分解为文件并将其添加到robots.txt文件中:
Sitemap: http://www.example.com/sitemaps/users-001-005.xml
Sitemap: http://www.example.com/sitemaps/users-006-010.xml
Sitemap: http://www.example.com/sitemaps/users-011-015.xml
Sitemap: http://www.example.com/sitemaps/users-016-020.xml
Sitemap: http://www.example.com/sitemaps/users-021-025.xml
Sitemap: http://www.example.com/sitemaps/users-026-030.xml
Sitemap: http://www.example.com/sitemaps/users-031-035.xml
Sitemap: http://www.example.com/sitemaps/users-036-040.xml
Sitemap: http://www.example.com/sitemaps/users-041-045.xml
Sitemap: http://www.example.com/sitemaps/users-046-050.xml现在,您仍然需要注意每个站点地图的10 to限制,但是这是一种处理“太多”urls问题的方法。
https://webmasters.stackexchange.com/questions/107
复制相似问题