Guide : XML Sitemap
Ce que an XML sitemap is, its anatomy, the ignored tags (priority/changefreq), accurate lastmod, the 50 000/50MB limites, hreflang in sitemaps, and how to submit un.
Langues
1 indice probant sur cette page
- Outil en ligne associéGoogle Index Checker
An XML sitemap is a UTF-8 fichier listing the canonical, indexable URLs vous vouloir moteur de recherches to know à propos de — chaque in a <url> block with a requis <loc> and an optional <lastmod>. It helps engines découvrir URLs but doesn't guarantee indexation; its réel payoff is the submitted-vs-indexed diagnostic in Search Console. Google ignores <priority> and <changefreq>, and uses <lastmod> seulement quand it's verifiably accurate (significant updates, pas a blanket 'today'). Un sitemap caps at 50 000 URLs or 50MB uncompressed — past que vous split fichiers and référence les from a sitemap index. Inclure seulement canonical, indexable, 200-status URLs; leaving une URL out of le sitemap n’est pas the même as noindexing it. Sitemaps are aussi the easiest placer to manage hreflang at scale. Référence it in robots.txt and submit it in Search Console and Bing Webmaster Outils.
Evidence for this claim The XML sitemap protocol lists canonical URL locations and optional metadata, with limits of 50,000 URLs and 50 MB uncompressed per sitemap. Scope: Sitemaps protocol and current Google-supported limits. Confidence: high · Verified: Sitemaps XML format Evidence for this claim Google treats sitemaps as discovery hints rather than guarantees and supports submission through Search Console or robots.txt references. Scope: Current Google sitemap behavior and submission methods. Confidence: high · Verified: Google Search Central: Build and submit a sitemapTL;DR — An XML sitemap is a fichier que listes lune pages on votre site vous vouloir moteur de recherches to trouver. Chaque page obtient un entry: its complet URL and, optionally, the date it dernier meaningfully modifié. It helps engines découvrir votre pages — it doesn’t force les to index or rank anything. Vous put it at une URL comme
/sitemap.xml, point to it from votrerobots.txt, and submit it in Google Search Console and Bing Webmaster Outils.
Ce que an XML sitemap is
An XML sitemap is a liste of votre URLs, written in a simple structured format, que vous hand directement to moteur de recherches. Au lieu de making les découvrir every page by suivant liens, vous give les a clean inventory of lune pages vous care à propos de.
Google describes a sitemap as “a fichier où vous provide information à propos de the pages, videos, and autre fichiers on votre site.” The “XML” partie simplement signifie it’s written in a tagged format que machines lire easily. Here’s the smallest valid exemple:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/foo.html</loc>
<lastmod>2026-06-04</lastmod>
</url>
</urlset>Reading it top to bottom: the premier line dit “this is XML, encoded as UTF-8.” The
<urlset> wraps the whole liste. Chaque <url> is un page. <loc> is lune page’s
complet web adresse. <lastmod> is the date it dernier modifié in a meaningful façon —
and it’s optional.
Ce que it fait (and doesn’t do)
A sitemap helps engines trouver votre pages faster — surtout nouveau pages, or pages que aren’t bien lié from elsewhere on votre site. That’s the upside.
The catch la plupart personnes miss: submitting a sitemap doesn’t guarantee indexation. Google encore decides si chaque page is worth keeping. A sitemap is a façon to aider moteur de recherches trouver votre content, pas a command to index it. The réel valeur pour me is ce que vous pouvez voir afterward in Search Console — how nombreux of l’URLs vous submitted en réalité got indexé. Que gap is a utile diagnostic.
Ce que to put in it
Garder it clean. A sitemap devrait liste seulement lune pages vous en réalité vouloir indexé —
votre réel, canonical pages que retourner a normal 200 réponse. Leave out
redirections, duplicate URLs, and anything you’ve définir to noindex. Think of it as a
tidy inventory of votre indexable définir, nothing plus.
Un important point of confusion: leaving une URL out of votre sitemap ne fait pas
supprimer it from Google. A sitemap advertises pages; it doesn’t hide les. To
en réalité garder une page out of the index vous besoin a noindex tag — pas a manquant
sitemap entry.
Où it goes and how to submit it
- Enregistrer it at a sensible URL —
/sitemap.xmlis the conventional par défaut. - Ajouter a line to votre
robots.txtso engines peut trouver it:Sitemap: https://www.example.com/sitemap.xml. - Submit it in Recherche Google Console (Sitemaps report) and Bing Webmaster Outils.
La plupart modern platforms (WordPress, Shopify, Wix, Squarespace, Webflow) generate a sitemap pour vous automatically — vous usually simplement besoin to submit it. Vouloir the complet anatomy, the limites, the tags Google ignores, and how hreflang fonctionne in sitemaps? Switch to the Avancé tab.
Evidence for this claim The XML sitemap protocol lists canonical URL locations and optional metadata, with limits of 50,000 URLs and 50 MB uncompressed per sitemap. Scope: Sitemaps protocol and current Google-supported limits. Confidence: high · Verified: Sitemaps XML format Evidence for this claim Google treats sitemaps as discovery hints rather than guarantees and supports submission through Search Console or robots.txt references. Scope: Current Google sitemap behavior and submission methods. Confidence: high · Verified: Google Search Central: Build and submit a sitemapTL;DR — An XML sitemap is a UTF-8 fichier of canonical, indexable
<loc>URLs, chaque optionally carrying a<lastmod>. It aids discovery, pas indexation — the payoff is the submitted-vs-indexed signal in Search Console. Google ignores<priority>and<changefreq>and uses<lastmod>seulement quand it’s verifiably accurate (significant updates, jamais a blanket “today”). Un fichier caps at 50 000 URLs or 50MB uncompressed — past que, split and utiliser a sitemap index. Inclure seulement200, canonical, indexable URLs; excluding une URL n’est pas the même as noindexing it. XML isn’t the seulement accepted format (RSS/Atom/txt fonctionner aussi), and sitemaps are the easiest placer to manage hreflang at scale — though ceux annotations go live on a lag, pas instantly. Référence it inrobots.txtand submit it in Search Console + Bing Webmaster Outils.
Ce que an XML sitemap en réalité is
An XML sitemap is a fichier, written to the sitemaps.org 0.9 protocol, que listes
l’URLs on votre site vous vouloir engines to know à propos de. Google’s propre definition: “A
sitemap is a fichier où vous provide information à propos de lune pages, videos, and autre
fichiers on votre site, and the relationships entre les.” It’s a discovery aid and
a coverage diagnostic — explicitly pas a guarantee: “A sitemap helps search
engines découvrir URLs on votre site, but it doesn’t guarantee que tout the items in
votre sitemap va be crawled and indexé.”
Que framing matters, parce que it’s où a lot of effort obtient misspent. The sitemap isn’t a ranking lever and it isn’t an indexation command. Here’s an annotated minimal exemple:
<?xml version="1.0" encoding="UTF-8"?> <!-- XML declaration; UTF-8 -->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <!-- root + namespace -->
<url> <!-- one entry per page -->
<loc>https://www.example.com/foo.html</loc> <!-- required: absolute URL -->
<lastmod>2026-06-04</lastmod> <!-- optional: last significant change -->
</url>
</urlset>Anatomy
- The XML declaration —
<?xml version="1.0" encoding="UTF-8"?>. Google is unambiguous ici: “The sitemap file must be UTF-8 encoded.” Obtenir the encoding incorrect and special characters break. <urlset>+ namespace — the root element, withxmlns="http://www.sitemaps.org/schemas/sitemap/0.9". The namespace is ce que indique the parser ce is a sitemap; the incorrect or manquant namespace is a courant Search Console error.<url>— un block par page.<loc>— requis. “Use fully-qualified, absolute URLs in your sitemaps” — pas relative paths, and sous ~2 048 characters. Tout valeurs doit be entity-escaped:&becomes&,'becomes',"becomes",>becomes>, and a literal less-than becomes<.<lastmod>— optional; the date lune page dernier significantly modifié (plus on the honesty rule ci-dessous).
The ignored-tags truth
Ce is the unique la plupart out-of-date chose in la plupart sitemap tutorials. Two legacy
tags — <priority> and <changefreq> — are ignored by Google. Gary
Illyes appelé priority “essentially a bag of noise,” and John Mueller has said
priority and modifier frequency “doesn’t really play que beaucoup of a role with
Sitemaps anymore.” Bing has confirmed the même: changefreq and priority ne … plus
affecter its exploration or ranking. Vous pouvez leave les in (ils do aucun harm) or strip
les out — ils simply don’t do anything.
<lastmod> is différent — ne faites pas lump it in with the ignored tags. Google
fait utiliser <lastmod>, but seulement quand it trusts it, and que trust is roughly
binary: soit Google believes votre dates or it doesn’t. The rule is que the date
devrait reflect a significant modifier — “an mettre à jour to the principal content, the
données structurées, or liens on lune page is généralement considéré significant, cependant
an mettre à jour to the copyright date n’est pas.” The échec mode I voir constantly is
stamping every URL with today’s date on every construire. That’s self-defeating:
Mueller has appelé it “just lazy,” noting it’s trivial pour engines to recognize
and seulement rend it harder pour les to spot genuinely mis à jour pages. Lie souvent
suffisant and, in Google’s words, “eventually we’re pas going to believe vous
anymore.” Bing leans même harder on <lastmod> as a freshness signal que Google
fait — so an accurate date helps vous on les deux engines, and a fake un hurts vous on
les deux.
Placement, naming, encoding, and compression
- Placement/naming. There’s aucun requis filename, but
/sitemap.xmlat the root is the convention. By par défaut a sitemap seulement affecte URLs at or ci-dessous its propre chemin, so garder it élevé suffisant to cover everything it listes. The un exception: vous pouvez host a sitemap pour a différent site si you’ve verified ownership of que site and itsrobots.txtpoints back to le sitemap’s réel emplacement — Google calls ce cross-submission, and it’s the mechanism behind a sitemap index aggregating sitemaps hosted elsewhere. - Encoding. UTF-8, toujours.
- Compression. You’re allowed to gzip a sitemap (serve it as
.xml.gz), qui is worth doing on grand fichiers. Important nuance: the 50MB cap is mesuré uncompressed — gzip saves bandwidth, pas headroom contre the size limite.
Limites → split + sitemap index
A unique sitemap is capped at 50 000 URLs or 50MB uncompressed, whichever comes premier. Google states it directement: “Tout formats limite a unique sitemap to 50MB (uncompressed) or 50 000 URLs.” Quand vous blow past soit limite, vous split the liste à travers multiple sitemap fichiers and référence les tout from a sitemap index — a sitemap of sitemaps. That’s its propre sibling topic; La version courte is que vous submit the index, and un index peut point at up to 50 000 child sitemaps, so you’ll jamais en réalité run out of capacity.
Qui URLs to inclure — and “exclude ≠ noindex”
Inclure seulement URLs que are indexable, canonical, and retourner 200. Que signifie
aucun 3xx redirections, aucun non-canonical duplicates, aucun noindex pages, aucun
robots-blocked URLs. A clean sitemap of exactly votre indexable définir is ce que rend
the Search Console submitted-vs-indexed comparison meaningful — pollute it with
junk and you’ve thrown away the diagnostic.
Now the mechanical point personnes obtenir incorrect: excluding une URL from votre sitemap fait
pas deindex it. Le sitemap is an advertisement, pas a gate. Removing une URL’s
entry simplement arrête vous advertising que page; si Google déjà knows à propos de it (via
liens, history, or un autre source) it stays dans l’index. The seulement mechanisms que
en réalité supprimer une page are a noindex directive (with exploration allowed so Google
peut voir it), a 404/410, or the removals outil. So “take it out of the sitemap”
is jamais the correct réponse to “how do I deindex this.”
Accepted sitemap fichier formats
XML isn’t the seulement format Google accepts — worth knowing so vous don’t assume you’re stuck hand-writing XML. Google calls XML “the la plupart versatile of le sitemap formats,” but it aussi reads:
- RSS 2,0 / Atom feeds — handy parce que nombreux CMSs déjà publish un; ils carry page URLs seulement.
- mRSS — a media RSS feed, utilisé pour video.
- Plain text (
.txt) — literally un URL per line, web-page URLs seulement, UTF-8.
XML is encore the correct par défaut parce que it’s the seulement format que supports the extensions (lastmod metadata, image, video, and hreflang annotations). The others are URL-only.
hreflang in sitemaps
Si vous run a multilingual or multi-regional site, le sitemap is usually the
easiest placer to manage hreflang — vous maintain the whole language cluster in un
fichier au lieu de injecting return-tags into every page template. (It’s un of the
three valid places hreflang peut live; the <head> and HTTP headers are the
others.)
How it’s implemented. Chaque <url> obtient xhtml:link rel="alternate" children,
un per language/region version, and vous declare the namespace
xmlns:xhtml="http://www.w3.org/1999/xhtml" on <urlset>:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://www.example.com/english/page.html</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://www.example.com/english/page.html"/>
<xhtml:link rel="alternate" hreflang="de" href="https://www.example.de/deutsch/page.html"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://www.example.com/english/page.html"/>
</url>
<!-- each alternate URL repeats the FULL set, including itself (return tags) -->
</urlset>The return-tag rule. Ce is the partie que bites personnes. Every <url> element
doit liste every alternate version of lune page — notamment itself. Google: “Chaque
<url> element doit have a child element <xhtml:link rel="alternate" hreflang="[supported_language-code]"> que listes every alternate version of the
page, notamment itself.” And it has to be bidirectional: “Si page X liens to page
Y, page Y doit lien back to page X. Si ce n’est pas the cas pour tout pages que utiliser
hreflang annotations, ceux annotations may be ignored or pas interpreted
correctement.” Ajouter an x-default entry pour the unmatched-language fallback. A unique
broken or manquant return-tag peut invalidate the whole définir.
The cap counts <loc> URLs seulement. A relief pour big international sites: the
50 000-URL limite counts seulement the <loc> page URLs, pas the hreflang
alternates. So a sitemap with 50 000 pages, chaque with ten language alternates,
encore fits — it’s the emplacement URLs que count, pas the alternative URLs.
Quand it en réalité goes live — budget days, pas minutes. Here’s the expectation to définir, and it’s mechanism plutôt que a quotable line. Google parses votre sitemap hreflang quand it re-fetches le sitemap, but the annotations seulement prendre effect une fois tout l’URLs in the définir have been (re)crawled and the return-tags reconciled contre chaque autre. Que signifie there’s a réel lag entre publishing the hreflang and the alternates being honored, and un slow-to-recrawl or broken URL in the définir peut hold the rest up. Don’t expect it to flip on the moment vous submit — plan pour it to settle over days.
Référence it and submit it
robots.txt— ajouter aSitemap:line with the complet absolute URL. Ce aussi lets engines auto-discover it.- Recherche Google Console — le sitemaps report (or the Search Console API) is the principal submission méthode; it’s aussi où vous lire the submitted-vs-indexed diagnostic.
- Bing Webmaster Outils — submit là aussi; Bing récupère it quickly and rechecks regularly.
Un automation remarque from how I think à propos de ce: a sitemap devrait be generated automatically from lune pages vous en réalité have, so it stays current. A hand-built sitemap rots the moment votre site changements. The siblings to ce page — the sitemaps overview, the sitemap index pour grand sites, and the image sitemap and video sitemap extensions — cover the rest of the family, and the broader discovery topic ties sitemaps to the autre façons engines trouver votre URLs.
AI summary
A condensed prendre on the Avancé version:
- An XML sitemap is a UTF-8 fichier listing the canonical, indexable URLs vous vouloir
engines to know à propos de — chaque
<url>has a requis<loc>(absolute URL) and an optional<lastmod>. Root is<urlset>with thesitemaps.org/0.9namespace. - It aids discovery, pas indexation. Submitting it doesn’t guarantee une page obtient indexé; the réel payoff is the submitted-vs-indexed diagnostic in Search Console.
<priority>and<changefreq>are ignored by Google (and Bing). Don’t lump<lastmod>in with les — it is utilisé, but seulement quand verifiably accurate (significant content changements, jamais a blanket “today” date).- Limites: 50 000 URLs or 50MB uncompressed, whichever comes premier. Past que, split fichiers and utiliser a sitemap index. Gzip is allowed but the 50MB cap is the uncompressed size.
- Inclure seulement
200, canonical, indexable URLs. Entity-escape& ' " < >. Excluding une URL ≠ noindexing it — removal nécessitenoindex/404, pas a manquant sitemap entry. - XML isn’t the seulement format — RSS/Atom and plain
.txtfonctionner aussi (URL-only); XML is the seulement un que supports image/video/hreflang extensions. - hreflang in sitemaps:
xhtml:link rel="alternate"children + thexmlns:xhtmlnamespace; every<url>doit liste tout alternates notamment itself, bidirectionally, plusx-default. The 50 000 cap counts seulement<loc>URLs, pas the alternates. Processed on sitemap re-fetch but live seulement après tout URLs in the définir are recrawled/reconciled — budget days, pas minutes. - Submit it via the
robots.txtSitemap:line, Recherche Google Console, and Bing Webmaster Outils. Generate it automatically so it stays current.
Documentation officielle
Primary-source documentation from the moteur de recherches.
- Sitemaps overview — ce que a sitemap is, si vous besoin un, and que it doesn’t guarantee indexation.
- Construire and submit a sitemap — the 50 000/50MB limites, UTF-8 requirement, absolute-URL rule, accepted formats, and the
<lastmod>“significant update” definition. - Manage sitemaps with a sitemap index fichier — splitting grand sitemaps and le sitemap index.
- Tell Google à propos de localized versions of votre page — hreflang in sitemaps via
xhtml:link, the return-tag rule, andx-default. - Combine sitemap extensions — putting image/video/hreflang in un sitemap.
- Sitemaps report (Search Console aider) — ce que chaque submission error signifie and Comment corriger it.
- sitemaps.org protocol — the underlying
0.9spec tout engines share.
Bing / Microsoft
- Keeping Content Discoverable with Sitemaps in AI-Powered Search (Jul 2025) — Bing’s stance que XML is preferred and
<lastmod>is a clé signal. - The Importance of Setting the lastmod Tag in Votre sitemap (Feb 2023) — pourquoi Bing weights
<lastmod>pour recrawl decisions.
Quotes from the source
On-the-record statements from Google and Bing. Chaque lien is a deep lien que jumps to the quoted passage on the source page.
Google — ce que a sitemap is and fait
- “A sitemap is a file where you provide information about the pages, videos, and other files on your site, and the relationships between them.” — Sitemaps overview. Jump to quote
- “A sitemap helps search engines discover URLs on your site, but it doesn’t guarantee that all the items in your sitemap will be crawled and indexed.” Jump to quote
Google — format, limites, and encoding
- “All formats limit a single sitemap to 50MB (uncompressed) or 50,000 URLs.” — Construire and submit a sitemap. Jump to quote
- “The sitemap file must be UTF-8 encoded.” Jump to quote
- “Use fully-qualified, absolute URLs in your sitemaps.” Jump to quote
Google — the ignored tags, and the lastmod rules
- “we ignore those. It’s essentially a bag of noise.” — Gary Illyes, on
<priority>/<changefreq>. Lire the coverage - “Priority and change frequency doesn’t really play that much of a role with Sitemaps anymore.” — John Mueller. Lire the coverage
- “an update to the main content, the structured data, or links on the page is generally considered significant, however an update to the copyright date is not.” — on ce que
<lastmod>devrait reflect. Jump to quote - “setting today’s date in a sitemap file isn’t going to be something that works in favor of anyone, it’s just lazy.” — John Mueller. Lire the coverage
- “it’s binary, or at least was last time I checked. we either trust it or not.” — Gary Illyes, on si Google trusts votre
<lastmod>. Lire the coverage
Google — the 50 000 cap counts emplacement URLs, pas hreflang alternates
- The 50 000-URL limite “is just the location URL” count — pas the hreflang alternate URLs. — John Mueller. Lire the coverage
Google — hreflang retourner tags
- “Each
<url>element must have a child element<xhtml:link rel="alternate" hreflang="[supported_language-code]">that lists every alternate version of the page, including itself.” — Localized versions docs. Jump to quote - “If page X links to page Y, page Y must link back to page X. If this is not the case for all pages that use hreflang annotations, those annotations may be ignored or not interpreted correctly.” Jump to quote
Bing — XML and lastmod
- “XML remains the preferred format for sitemaps, as it supports structured metadata like lastmod, which helps Bing assess content freshness and relevance more effectively.” Jump to quote
XML sitemap checklist
Construire it correct
- Fichier is UTF-8 encoded, with
<?xml version="1.0" encoding="UTF-8"?>on line un. - Root is
<urlset>withxmlns="http://www.sitemaps.org/schemas/sitemap/0.9". - Every
<loc>is a fully-qualified, absolute URL sous ~2 048 characters. - Tout valeurs are entity-escaped (
& ' " > <). -
<priority>and<changefreq>supprimé or accepted-as-ignored (Google ignores les). -
<lastmod>présent seulement où it reflects a significant modifier — jamais a blanket “today” on every URL. - Fichier is sous 50 000 URLs and 50MB uncompressed; si pas, split and ajouter a sitemap index.
Inclure the correct URLs
- Seulement canonical, indexable,
200-status URLs. - Aucun
3xxredirections, aucun non-canonical duplicates, aucunnoindex/robots-blocked URLs. - Remember: leaving une URL out is pas a façon to deindex it — utiliser
noindexpour que.
Ship and monitor it
-
Sitemap:line ajouté torobots.txtwith the complet absolute URL. - Submitted in Recherche Google Console and Bing Webmaster Outils.
- Generated automatically from réel URLs so it stays current.
- Watch the submitted-vs-indexed numbers in Search Console; split by section/type to voir qui partie of le site is under-indexed.
XML sitemap — cheat sheet
Tag référence
| Tag | Requis? | Ce que it fait | Google’s treatment |
|---|---|---|---|
<urlset> | Requis | Root element; declares the 0.9 namespace | Parsed (incorrect/manquant namespace = error) |
<url> | Requis | Un block par page | Parsed |
<loc> | Requis | Lune page’s fully-qualified absolute URL | Utilisé |
<lastmod> | Optional | Date of dernier significant modifier | Utilisé — but seulement si verifiably accurate |
<changefreq> | Optional | Hint at how souvent lune page changements | Ignored |
<priority> | Optional | Relative importance (0,0–1,0) | Ignored |
xhtml:link rel="alternate" | Optional | hreflang alternate versions | Utilisé (nécessite xmlns:xhtml, retourner tags) |
Inclure vs exclude
| Inclure | Exclude |
|---|---|
| URL canoniques | Non-canonical / duplicate URLs |
| Indexable pages | noindex pages |
200-status pages | 3xx redirections, 4xx/5xx errors |
| Pages vous vouloir crawled & indexé | robots-blocked URLs |
Fast facts
- Limites: 50 000 URLs or 50MB uncompressed, whichever premier → split + sitemap index.
- Encoding: UTF-8. URLs: absolute, entity-escaped.
- Gzip allowed (
.xml.gz); the 50MB cap is the uncompressed size. - hreflang 50 000 cap counts
<loc>URLs seulement, pas the alternates. - Excluding une URL ≠ noindexing it.
- Accepted formats: XML (the versatile un), RSS/Atom, plain
.txt.
A minimal valid XML sitemap
The smallest correct sitemap — declaration, namespaced <urlset>, un <url> with
a requis <loc> and an optional <lastmod>:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/</loc>
<lastmod>2026-06-22</lastmod>
</url>
<url>
<loc>https://www.example.com/blog/post-with-an-ampersand?a=1&b=2</loc>
<lastmod>2026-06-18</lastmod>
</url>
</urlset>Remarque the second <loc>: the & in the requête string is entity-escaped to
&. Raw &, ', ", <, and > characters va break the XML.
Gzip it pour grand fichiers
Vous pouvez serve a sitemap gzipped to enregistrer bandwidth — nom it .xml.gz:
# Compress a sitemap; Google and Bing both accept .xml.gz
gzip -k sitemap.xml # produces sitemap.xml.gz, keeps the originalRemember the size limite is vérifié uncompressed — gzip cuts transfer size, pas
the 50MB/50 000-URL ceiling. (On Windows, utiliser quelconque zip outil que produces a vrai
gzip stream, or Compress-Archive is pas gzip — préférer 7-Zip’s gzip output.)
Référence it in robots.txt
Point engines at it with a Sitemap: line (complet absolute URL; auto-discovery
fonctionne from ici):
User-agent: *
Allow: /
Sitemap: https://www.example.com/sitemap.xmlValidate it
Avant vous submit, sanity-check the fichier:
- Récupérer it and confirmer it renvoie
200with a réel XML corps (pas votre HTML 404 page — “Unsupported format” in Search Console usually signifie vous submitted an HTML page by mistake). - Vérifier well-formedness locally with
xmllint:
# Confirms the XML parses; flags unescaped & < > and mismatched tags
xmllint --noout sitemap.xml && echo "well-formed"- Submit and watch the Search Console Sitemaps report pour the parsed URL count and quelconque errors, alors track submitted-vs-indexed over the suivant days.
Outils pour building and checking votre XML sitemap
- Google Index Checker — une fois votre
sitemap is live, ce is how vous vérifier the autre side of the diagnostic:
si une URL vous submitted is en réalité indexable. It surfaces code d’état,
redirections,
noindex, and canonical signals pour une URL, alors routes vous to Search Console’s Inspection d’URL pour Google’s réel réponse. Utile pour chasing bas pourquoi a submitted URL isn’t showing up dans l’indexé count.
Ready-to-paste prompts pour sitemap fonctionner
Audit a sitemap fichier pour spec compliance. Paste the raw XML content of votre sitemap (or a representative chunk of it) and demander an AI assistant to vérifier it contre the rules in ce article:
Here is the content of my XML sitemap. Check it against these rules and list
every violation with the line/URL affected:
1. The declaration and encoding must be `<?xml version="1.0" encoding="UTF-8"?>`.
2. `<urlset>` must declare xmlns="http://www.sitemaps.org/schemas/sitemap/0.9".
3. Every <loc> must be a fully-qualified absolute URL, with & ' " < > properly
entity-escaped (& ' " > <).
4. Flag any <priority> or <changefreq> tags as harmless-but-ignored, not errors.
5. Flag any <lastmod> value that is identical across most/all URLs (a sign of a
fake "always today" date) as suspicious rather than a hard error.
6. Confirm the file is under 50,000 <url> entries and, if you can estimate file
size, under 50MB uncompressed.
[paste sitemap XML here]Expect back a liste of concrete violations (pas a rewrite) — treat generic
“looks fine” output as a signal to vérifier the fichier yourself with xmllint
à la place.
Examiner hreflang retourner tags in a sitemap. Si you’re managing hreflang via
sitemap xhtml:link blocks, paste a section of the fichier and demander pour a
bidirectionality vérifier:
This is a section of my XML sitemap using xhtml:link rel="alternate" hreflang
tags. For each <url> block, list every hreflang alternate it declares, then
tell me which alternates are NOT reciprocated (page A links to page B, but B's
block doesn't link back to A) and whether an x-default entry is present for
each language cluster.
[paste sitemap XML section here]Ce catches the exact échec mode covered ci-dessus — un manquant retourner tag peut obtenir the whole hreflang définir ignored — faster que eyeballing a grand fichier by hand.
Ressources utiles
My connexe writing
- Quand Devrait Vous Worry À propos de Budget d’exploration? — où clean sitemaps fit into explorer efficiency, and pourquoi votre sitemap devrait liste seulement indexable URLs.
- Enterprise SEO technique — the automate-it-or-it-rots posture, and sitemaps at scale.
- Webmigration de site: The Definitive Guide — pourquoi I garder a sitemap of the old URLs autour après a migration to watch les drop out of the index in GSC.
- Hreflang: The Facile Guide — the three valid places hreflang peut live, notamment le sitemap, and the tradeoffs.
- The Beginner’s Guide to SEO technique — où sitemaps sit in the bigger picture.
My speaking
- How Search Fonctionne (SlideShare) — my walkthrough of exploration, discovery, and indexation. (Standing disclaimer: “This is my understanding of systems… not going to be 100% complete or accurate.”)
From others
- Google’s Sitemaps documentation — the canonical source pour formats, limites, and extensions.
- sitemaps.org — the cross-engine
0.9protocol tout of ce is construit on. - Bing’s Sitemaps in AI-Powered Search — Bing’s louder-than-Google prendre on
<lastmod>. - Bing’s The Importance of Setting the lastmod Tag in Votre sitemap — explique how Bing uses
<lastmod>pour recrawl prioritization. - Moteur de recherche Roundtable — sitemap coverage — aggregated Google and Bing statements on sitemaps, notamment Gary Illyes on
<priority>and John Mueller on<lastmod>accuracy. - Recherche Google Central Blog: Ce que Googlebot semble pour in votre sitemap — Google’s propre post confirming
<lastmod>and removing the ping protocol. - Moteur de recherche Journal — XML Sitemaps — industry coverage of sitemap meilleur practices and Erreurs fréquentes.
Testez vos connaissances: XML sitemaps
Five questions on the XML sitemap format specifics — tags, limites, and hreflang. Pick an réponse pour chaque, alors vérifier.
Journal des modifications
Mis à jour le 18 juil. 2026.
Résumé éditorial et détails enregistrés des changements.Détails des changements
-
Les notes détaillées des changements sont actuellement disponibles en anglais.
Comparaison complète indisponible — aucun instantané antérieur n’a été archivé pour cette révision.