本文へスキップ
Skillpedia
SEO対策75k · #2766

canonical-header

できること

このスキルは、ページのcanonicalのシグナルが互いに一致しているかを確認します。HTMLとHTTPヘッダーの両方でcanonicalのアドレスを設定する、サイトの運営者や開発者向けです。

使う場面

  • ✓ページがHTMLのcanonicalタグとLinkヘッダーの両方を送っているとき。
  • ✓ページとサーバーの応答で、canonicalのシグナルが異なるとき。
  • ✓検索で重複コンテンツの問題が出ているとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/canonical-header/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/canonical-header/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私の商品ページのcanonicalタグとLinkヘッダーを比べ、一致するようにしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、HTMLのcanonicalタグとHTTPのLinkヘッダーを比べ、どちらか一方を更新して、両方が同じcanonicalのURLを示すようにします。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Sync HTML canonical tags and Link headers

Conflicting canonical-url signals can lead search engines to ignore both declarations, potentially causing duplicate content issues and incorrect indexing.

Quick Reference

  • Ensure the rel="canonical" tag in your HTML matches the Link canonical-url header if both are used
  • Avoid sending conflicting signals to search engines about the primary version of a page
  • Maintain consistency across all methods of declaring your canonical URL

Check

Compare the HTML canonical tag with the HTTP Link header to ensure they point to the exact same URL.

Fix

Update either the HTML tag or the HTTP header so that they provide a consistent canonical URL signal.

Explain

Explain the risks of sending conflicting technical SEO signals to search engine crawlers.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Sync HTML canonical tags and Link headers. 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-header

よくある質問

両者が食い違うと、何が問題ですか?

矛盾するシグナルが、検索エンジンに両方の宣言を無視させるおそれがあると、このスキルは説明しています。

どちらを変更すべきですか?

どちらでもよいですが、最終的なcanonicalのURLが両方で同じであることが条件です。

これはどんな問題を防ぎますか?

重複コンテンツの問題と、誤った索引です。

詳細

作者による元の説明

Use when auditing metadata, crawlability, structured data, or indexability related to Sync HTML canonical tags and Link headers. Verify the rendered HTML and HTTP response rather than relying only on source files.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2766
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル