规则 / og-url-canonical-mismatch · 规则集 2026-07
og:url 与 canonical 不一致
| 规则 ID | og-url-canonical-mismatch |
|---|---|
| 严重程度 | 警告 |
| 分类 | 平台与抓取 |
| 平台 | 全部平台 |
| 需要人工处理 | 否 |
这是什么
og:url 与 canonical 不一致。OGKit 规则 og-url-canonical-mismatch(警告)。该 ID 是文档网址与 CI --disable 键使用的公开 API,请勿改名。
以下搜索词应指向本页:
og:url does not match canonicalog:url and link rel=canonical
为什么重要
两者不一致时,平台和搜索引擎可能把它们视为不同页面身份。
受影响的平台
全部 OGKit 平台资料,包括使用这些标签的主要社交、聊天与搜索爬虫。
各平台的爬虫预算与字段优先级详见平台行为参考。
如何复现
- Compare `og:url` with `<link rel="canonical">` after normalizing host/path.
- Trailing slash, www, and query differences count.
如何修复
让 og:url 与 canonical 使用完全相同的绝对 HTTPS URL。
没有适用于所有情况的单一模板;请使用 OGKit 问题中的实测值与预期值。