Skip to content
Skillpedia
SEO75k · #3022

sitemap-domain

What it does

This skill checks the addresses listed in a sitemap for mismatched domains, protocols, or www variants, and corrects them. It is for sites that changed domain, moved from HTTP to HTTPS, or changed their www setup.

When to use it

  • ✓When you ask the agent to check whether sitemap addresses match your current domain.
  • ✓When you have recently moved from HTTP to HTTPS or changed your domain name.
  • ✓When Search Console reports low coverage for a sitemap you submitted.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/sitemap-domain/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“We moved to HTTPS and a new domain, and Search Console shows low coverage. Can you check that the sitemap URLs use the right domain?”

5 new skills a week. 1 minute to read.

How it works

The agent reads every location entry in the sitemap and compares its protocol and hostname with the sitemap's own address. It flags mismatches, such as old domains, HTTP addresses, or the wrong www form, and updates them to the canonical version.

Technical content (original SKILL.md)

Original text by the author, straight from 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

FAQ

Why does Google skip some sitemap entries?

The skill says Google ignores URLs from domains it cannot verify as yours, so those pages miss the sitemap benefit.

What do mixed www and non-www URLs suggest?

The skill says it points to a canonicalization issue that should be fixed first.

What should I do after fixing it?

The skill recommends regenerating the sitemap and resubmitting it.

Details

Original description by the author

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

Popularity

GitHub stars
75k
Ranking position
#3022
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills