只纳入希望被索引的 canonical URL。确认每个 URL 均返回成功响应,没有重定向,也未被屏蔽或标记为 noindex。列入站点地图只是提示,并非索引指令。
确保站点地图条目与站内链接及 rel=canonical 一致。只有页面发生实质变化时才设置 lastmod;不要每次构建都刷新所有日期。Google 建议列出 canonical URL;如果信号冲突,Google 可能选择其他 canonical。Canonical 指南 · Google 的 lastmod 指南
后续步骤
- 导出站点地图 URL 和响应状态。
- 将每个 URL 与其 canonical 和最终重定向目标进行比较。
- 删除非 canonical、已重定向、错误和 noindex URL。
- 仅在内容发生实质变化时更新 lastmod。