# XML 站点地图（Sitemap）

> Sitemap 帮助 Google 发现 URL，但不保证抓取或索引；链接良好的网站可能并不需要。每个文件最多 50 MB（未压缩）或 50,000 个 URL。Google 忽略 priority 和 changefreq，lastmod 只在一贯且可验证地准确时才用。

- URL: https://geo.casa/zh-cn/crawling-indexing/xml-sitemaps/
- 参考 · 官方文档已说明
- 审核于: 2026-10-25

## 你需要它吗？

> **官方文档已说明:**
> 「如果网站的页面链接良好，Google 通常能够发现网站的大部分内容。」Sitemap 可以改善较大或较复杂网站的抓取，但并不保证其中所有内容都会被抓取和编入索引。
>
> 参考来源: [Google Search Central: What is a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview)

## 大小限制

> **官方文档已说明:**
> 「所有格式都将单个 Sitemap 限制为 50MB（未压缩）或 50,000 个 URL。」更大的网站需要拆分成多个 Sitemap，并可以提交一个 Sitemap 索引文件。
>
> 参考来源: [Google Search Central: Build and submit a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap)

> **官方文档已说明:**
> 百度 Sitemap 协议规定每个文件最多 50,000 个网址，但大小应小于 10MB（10,485,760 字节），gzip 压缩前也要满足。它支持 XML 和纯文本格式的 Sitemap 以及 Sitemap 索引文件。编码可用 UTF-8 或 GBK。
>
> 参考来源: [Baidu: 百度Sitemap协议](https://help.baidu.com/question?prod_id=99&class=0&id=3032)

> **官方文档已说明:**
> 360 搜索同样规定单个文件不超过 10MB、不超过 50,000 个网址，编码可用 UTF-8 或 GBK，Sitemap 索引文件不超过 500M。
>
> 参考来源: [360 Search: Sitemap介绍](https://www.so.com/help/help_3_3.html)

> **官方文档已说明:**
> 头条搜索要求 UTF-8 编码，单个数据文件不超过 10M、item 不超过 1 万条；sitemapindex 文件不超过 5M、节点不超过 5 万。
>
> 参考来源: [Toutiao Search: sitemap提交帮助](https://www.toutiao.com/i6766898464660914695/)

符合 Google 50MB 上限的文件，对国内搜索引擎可能已经太大。每个文件控制在 10MB、1 万个网址以内，各家都适用。

## Google 使用和忽略的标签

> **官方文档已说明:**
> 「Google 会忽略 `<priority>` 和 `<changefreq>` 的值。」只有当 `<lastmod>` 一贯且可验证地准确时（例如与页面的最后修改时间对比），Google 才会使用它。这个值应反映最近一次重大更新。
>
> 参考来源: [Google Search Central: Build and submit a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap)

| 标签 | Google |
|---|---|
| `<loc>` | 必需：规范 URL |
| `<lastmod>` | 只在一贯准确时使用 |
| `<priority>` | 忽略 |
| `<changefreq>` | 忽略 |

## 应该包含什么

- 只放规范、可索引的 URL，不放重定向、`noindex` 页面或重复页面（[规范网址（canonical）信号](https://geo.casa/zh-cn/crawling-indexing/canonical-signals/)）。
- 每个 URL 一个 `<lastmod>`，只在页面有实质变化时更新，而不是每次重新构建都更新。

## 本站的做法

Sitemap 只列出两种语言中已发布、可索引的条目，不包括草稿、回退页面和内容不足的专题页。每个 `<lastmod>` 是条目的审核日期，与页面上显示的日期以及 JSON-LD 中的 `dateModified` 相同。本站不输出 `<priority>` 和 `<changefreq>`。

## 相关条目

- [XML Sitemap 与 IndexNow 对比](https://geo.casa/zh-cn/tools-protocols/sitemaps-vs-indexnow/)：拉取（Sitemap）与推送（IndexNow）的对比。

## 参考来源

- [Google Search Central: What is a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview)
- [Google Search Central: Build and submit a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap)
- [sitemaps.org: Sitemaps XML format](https://www.sitemaps.org/protocol.html)
- [Baidu: 百度Sitemap协议](https://help.baidu.com/question?prod_id=99&class=0&id=3032)
- [360 Search: Sitemap介绍](https://www.so.com/help/help_3_3.html)
- [Toutiao Search: sitemap提交帮助](https://www.toutiao.com/i6766898464660914695/)
