界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

canonical-chain

canonical-chain

【数据与研究】Use when auditing metadata, crawlability, structured data, or indexability related to Avoid redirect chains on canonical URLs. Verify the rendered HTML and HTTP response rather than relying only on source files.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: canonical-chain description: "Use when auditing metadata, crawlability, structured data, or indexability related to Avoid redirect chains on canonical URLs. Verify the rendered HTML and HTTP response rather than relying only on source files." metadata: category: seo priority: medium difficulty: intermediate estimatedTime: "10" source: frontendchecklist.io url: https://frontendchecklist.io/rules/seo/canonical-chain

Avoid redirect chains on canonical URLs

Canonical chains confuse search engines and can result in the wrong version of a page being indexed, while also adding unnecessary latency for crawlers.

Quick Reference

  • Ensure that the URL in your rel="canonical" tag returns a 200 OK status
  • Never point a canonical tag to a URL that then redirects to another location
  • Verify that the canonical URL is the final, intended version of the content

Check

Verify that the canonical URL of the page does not result in any redirects.

Fix

Update the <link rel="canonical"> tag to point directly to the final, non-redirecting URL.

Explain

Explain why pointing a canonical tag to a redirecting URL weakens the canonical-url signal and impacts SEO.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Avoid redirect chains on canonical URLs. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/seo/canonical-chain

我的收藏