> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/zh/fa-bu/seo.md).

# SEO

### GitBook 自动完成的事项

#### 响应式设计

已发布的内容会适配任何屏幕尺寸——手机、平板和桌面设备。

#### URL 和元数据

* 默认情况下，页面 URL 基于页面标题，但可以自定义。
* 规范 URL 可防止重复内容问题。
* HTML 和 Open Graph 标题会取自页面标题和站点标题。
* Meta 和 Open Graph 描述会取自页面描述。
* 图片支持替代文本，有助于搜索引擎和无障碍访问。
* HTML 会在服务器端预渲染，因此爬虫无需 JavaScript 即可索引你的内容。

{% hint style="info" %}
GitBook 不会生成关键词 meta 标签。现代搜索引擎不会用它们来进行排名—— [Google 已在 2009 年确认了这一点](https://developers.google.com/search/blog/2009/09/google-does-not-use-keywords-meta-tag).
{% endhint %}

#### 网站地图

GitBook 会为任何未设为“未列出”的已发布站点自动生成网站地图。要找到它，请在后面添加 `/sitemap-pages.xml` 到你的网站首页 URL 后面——例如， [gitbook.com/docs/sitemap-pages.xml](https://gitbook.com/docs/sitemap-pages.xml).

#### CDN 和缓存

所有已发布内容都会被缓存，并通过全球 CDN 提供。更快的加载速度能同时提升用户体验和搜索排名。

### 你可以做的事

#### 设置自定义域名

像这样的自定义域名 `docs.example.com` 相比于 `yourorganization.gitbook.io` 子域名，能提升搜索可见性。设置自定义域名 →

#### 提高索引速度

GitBook 无法控制搜索引擎索引你内容的速度，但有两件事可以帮助：

1. 从已被索引的页面链接到你的网站。当 Google 重新抓取这些页面时，就更有可能发现你的网站。
2. 直接向 Google 提交你的网站。这需要自定义域名，并通过 TXT DNS 记录验证所有权。 [将你的网站提交给 Google →](https://developers.google.com/search/docs/advanced/crawling/ask-google-to-recrawl)

#### 设置重定向

将内容迁移到 GitBook 或重组你的网站可能会破坏现有链接并影响 SEO。设置 [重定向](/docs/documentation/zh/fa-bu/site-redirects.md) →，将旧 URL 转发到新 URL。

当你移动或重命名页面时，GitBook 会自动创建一个 [HTTP 307 重定向](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/307) 从旧 URL 到新 URL 的重定向。 [了解有关自动重定向的更多信息 →](/docs/documentation/zh/fa-bu/site-redirects.md#about-automatic-redirects)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/zh/fa-bu/seo.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
