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

sitemap-domain

できること

このスキルは、サイトマップに載っているアドレスのドメインの不一致、プロトコル、wwwの有無を確認し、修正します。ドメインを変えた、HTTPからHTTPSに移った、wwwの設定を変えたサイト向けです。

使う場面

  • ✓サイトマップのアドレスが現在のドメインと一致しているか確認するようエージェントに頼むとき。
  • ✓最近HTTPSに移行したか、ドメイン名を変更したとき。
  • ✓提出したサイトマップについて、Search Consoleが低いカバレッジを報告しているとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“HTTPSと新しいドメインに移行しました。Search Consoleでカバレッジが低いと表示されています。サイトマップのURLが正しいドメインを使っているか確認してください。”

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

仕組み

エージェントは、サイトマップのすべてのlocationのエントリーを読み、そのプロトコルとホスト名をサイトマップ自身のアドレスと比べます。古いドメイン、HTTPのアドレス、誤ったwwwの形式などの不一致を指摘し、正規のバージョンに更新します。

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

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

Keep sitemap URLs on the correct domain

Google ignores sitemap entries from domains it cannot verify as yours — cross-domain URLs are simply skipped, meaning those pages lose the crawl-discovery benefit of the sitemap.

Quick Reference

  • Every <loc> URL must use the same domain and protocol (https://www.example.com) as the sitemap file itself
  • Cross-domain URLs in a sitemap are ignored by Google
  • Mixing http:// and https:// URLs in one sitemap creates conflicting signals
  • Mixing www and non-www variants indicates a canonicalization issue to fix first

Check

Parse all <loc> values in the sitemap and extract the protocol and hostname. Flag any URL whose protocol or hostname differs from the sitemap's own URL. Common mismatches: http vs https, www vs non-www, old domain vs new domain.

Fix

Update all <loc> URLs to use the canonical-url protocol and hostname. If the site is on https://www.example.com, every sitemap URL must start with https://www.example.com/. Regenerate and resubmit the sitemap.

Explain

Explain why Google restricts sitemap URLs to the same domain, how cross-domain URLs are silently dropped, and how domain mismatches in a sitemap reveal underlying canonicalization problems.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Keep sitemap URLs on the correct domain. 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/sitemap-domain

よくある質問

Googleがサイトマップの一部のエントリーを飛ばすのはなぜですか?

このスキルによると、Googleは自分のものと確認できないドメインのURLを無視するため、それらのページはサイトマップの利点を受けられません。

wwwありとなしのURLが混在していると何を示しますか?

このスキルによると、正規化の問題があることを示しており、まずそれを直すべきです。

修正の後はどうすべきですか?

このスキルは、サイトマップを再生成し、それをもう一度送信することを勧めています。

詳細

作者による元の説明

Use when applies to sites that have recently migrated from HTTP to HTTPS, changed domain name, or have www/non-www redirect configurations. Use when sitemap submission reports low coverage.

repo: thedaviddias/Front-End-Checklist

人気

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

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

0

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

コメント

  • …

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

似ているスキル