# 将网站迁移到新网址

> 迁移网站时，用 301 或 308 永久重定向把旧 URL 一对一映射到新 URL，避免重定向链，一般至少保留一年。更换域名时，要为旧域名的每个已验证变体提交地址更改请求。排名会波动，中型网站可能要几周或更久才稳定；301 不损失 PageRank。

- URL: https://geo.casa/zh-cn/crawling-indexing/site-moves/
- 指南 · 官方文档已说明
- 审核于: 2026-10-25

## 开始之前

- 准备好每个旧 URL 到新 URL 的完整对应表。
- 在 Search Console 中验证新旧两个网站，包括每个域名变体。

## 1. 永久重定向旧 URL

> **官方文档已说明:**
> Google 建议「尽可能使用 HTTP 永久重定向，例如 301 和 308」。应避免重定向链：Googlebot 虽然最多可以跟随 10 次跳转，但应直接重定向到最终目标。301 及其他永久重定向不会造成 PageRank 损失。
>
> 参考来源: [Google Search Central: Site moves and migrations](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes)

## 2. 更换域名时使用地址更改工具

> **官方文档已说明:**
> 更换域名时，应为旧域名的所有已验证变体向新域名提交地址更改请求，即使你实际没有使用这些变体。这些变体包括子域名，以及带 www 和不带 www 的版本。从 HTTP 迁移到 HTTPS、同一域名下切换 www 与非 www、在同一域名内移动路径，都不需要这样做。
>
> 参考来源: [Google Search Central: Site moves and migrations](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes)

> **官方文档已说明:**
> Google 于 2026 年 6 月 17 日在网站迁移文档中加入了关于所有变体的说明。理由是「当网站的所有变体都正确迁移时，域名迁移效果最好」。
>
> 参考来源: [Google Search Central: Latest Google Search documentation updates](https://developers.google.com/search/updates)

## 3. 保留重定向

> **官方文档已说明:**
> 「尽可能长期保留重定向，一般至少 1 年。」这样 Google 才能把各种信号转移到新 URL，包括其他网站上指向旧 URL 的链接。
>
> 参考来源: [Google Search Central: Site moves and migrations](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes)

## 验证

- 抽查旧 URL：每个都应通过一次 301/308 跳转到正确的新 URL。
- 提交新的 Sitemap，并在 Search Console 中同时关注两个资源的索引情况。

## 会出现什么

> **官方文档已说明:**
> 「迁移期间排名会出现暂时波动。」对于中型网站，Google 可能需要几周或更长时间，才会逐步用新 URL 取代旧 URL 显示。大型网站需要更久。
>
> 参考来源: [Google Search Central: Site moves and migrations](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes)

## 常见错误

- 把所有页面都重定向到首页，而不是对应的新 URL。
- 几周后就移除重定向。
- 迁移了主域名，却在地址更改中漏掉了子域名或 www 变体。

## 参考来源

- [Google Search Central: Site moves and migrations](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes)
- [Google Search Central: Latest Google Search documentation updates](https://developers.google.com/search/updates)
