资讯动态

sitemap 分片:超过 500 条 URL 该怎么拆

发布时间:2026/10/31 7:04:19 来源:尧图企业网站定制
拆的阈值单个 sitemap 的硬上限是 5 万条 URL、50MB未压缩。但实际超过 500 到 1000 条就该考虑拆理由不是上限是维护按内容类型拆产品、问答、文章改哪类只动哪个文件单个文件出错不影响整体抓取提交后能看每个分片的抓取状态sitemap index 的写法根文件不放 URL只放子 sitemap 的地址?xml version1.0 encodingUTF-8?sitemapindexxmlnshttp://www.sitemaps.org/schemas/sitemap/0.9sitemaplochttps://example.com/sitemap_product.xml/loclastmod2026-10-28/lastmod/sitemapsitemaplochttps://example.com/sitemap_qa.xml/loclastmod2026-10-28/lastmod/sitemap/sitemapindex子文件就是常规 sitemapurlsetxmlnshttp://www.sitemaps.org/schemas/sitemap/0.9urllochttps://example.com/qa/minimum-order.html/loclastmod2026-10-28/lastmod/url/urlset最容易漏的一步分片之后robots.txt 里要指向 index别指向子文件。Sitemap: https://example.com/sitemap_index.xml只提交子文件、不给 index抓取方拿不到全貌。这是最常见的配置失误。一条建议lastmod别偷懒全写成当天。抓取方会发现每条都是“刚改过”久了就不再信这个字段——改成真实修改时间反而抓得更勤。

读完文章,也想定制专属网站?

尧图设计师 24 小时内与您沟通定制方案

免费获取报价 →
↑