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

canonical-url

できること

このスキルは、各ページが自分の優先アドレスを一つ宣言しているかを確認します。URLパラメーターなど、複数のアドレスからページに到達できるサイトの運営者向けです。

使う場面

  • ✓URLパラメーター、wwwありとなしのバージョン、ページ分割された一覧などから、ページに到達できるとき。
  • ✓ページにcanonicalのタグがないとき。
  • ✓すべてのページが、自分の優先アドレスを指すようにしたいとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のストアのすべての商品ページに、きれいなアドレスを指すcanonicalのタグがあるようにしてください。”

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

仕組み

エージェントは、プロトコルとドメインを含む絶対のWebアドレスを使い、ページのheadにあるcanonicalのタグを追加または修正します。

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

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

Set canonical URLs for all pages

Duplicate content from URL parameters, www vs non-www, or pagination dilutes ranking signals—canonical tags consolidate these signals to the preferred URL.

Quick Reference

  • Canonical URLs tell search engines which version of a page to index
  • Prevents duplicate content penalties from URL variations
  • Use absolute URLs including protocol and domain
  • Self-referencing canonicals are a best practice

Check

Verify that this page has a canonical URL tag and that it points to the correct preferred version.

Fix

Add or correct the canonical URL tag in the head section to prevent duplicate content issues.

Explain

Explain how canonical URLs help search engines understand the preferred version of duplicate or similar pages.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Set canonical URLs for all pages. 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-url

よくある質問

canonicalのURLは、どんな問題を解決しますか?

同じページのバージョンにまたがって、コンテンツの重複が検索順位のシグナルを分散させるのを止めると、このスキルは説明しています。

ページは自分自身を指すべきですか?

自己参照のcanonicalはベストプラクティスだと、このスキルは説明しています。

アドレスは相対パスにすべきですか?

いいえ。プロトコルとドメインを含む絶対のURLを勧めています。

詳細

作者による元の説明

Use when auditing metadata, crawlability, structured data, or indexability related to Set canonical URLs for all pages. Verify the rendered HTML and HTTP response rather than relying only on source files.

repo: thedaviddias/Front-End-Checklist

人気

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

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

0

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

コメント

  • …

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

似ているスキル