sitemap XML
What sebuah sitemap XML adalah, -nya anatomy, ignored tags (priority/changefreq), accurate lastmod, 50 000/50MB limits, hreflang di sitemaps, dan cara submit one.
Bahasa
1 sinyal bukti di halaman ini
- Alat aktif terkaitGoogle Index Checker
sebuah sitemap XML adalah sebuah UTF-8 file listing canonical, dapat diindeks URLs Anda ingin mesin pencari untuk know tentang — setiap di sebuah <url> block dengan sebuah diperlukan <loc> dan sebuah optional <lastmod>. ini helps mesin menemukan URLs tetapi doesn't guarantee pengindeksan; -nya nyata payoff adalah submitted-vs-terindeks diagnostic di Search Console. Google ignores <priority> dan <changefreq>, dan menggunakan <lastmod> hanya when ini adalah verifiably accurate (significant updates, not sebuah blanket 'today'). One sitemap caps di 50 000 URLs atau 50MB uncompressed — past itu Anda split files dan reference them dari sebuah sitemap indeks. sertakan hanya canonical, dapat diindeks, 200-status URLs; leaving sebuah URL out dari sitemap adalah not yang sama sebagai noindexing ini. Sitemaps adalah juga easiest place untuk manage hreflang di scale. Reference ini di robots.txt dan submit ini di Search Console dan Bing Webmaster alat.
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 — sebuah sitemap XML adalah sebuah file itu lists halaman pada Anda situs Anda ingin mesin pencari untuk temukan. setiap halaman gets one entry: -nya full URL dan, optionally, date ini last meaningfully changed. ini helps mesin menemukan Anda halaman — ini doesn’t force them untuk indeks atau peringkat anything. Anda put ini di sebuah URL like
/sitemap.xml, poin untuk ini dari Andarobots.txt, dan submit ini di Google Search Console dan Bing Webmaster alat.
What sebuah sitemap XML adalah
sebuah sitemap XML adalah sebuah list dari Anda URLs, written di sebuah sederhana structured format, itu Anda hand directly untuk mesin pencari. alih-alih membuat them menemukan setiap halaman oleh following tautan, Anda give them sebuah clean inventory dari halaman Anda care tentang.
Google describes sebuah sitemap sebagai “a file where you provide information about the pages, videos, and other files on your site.” (terjemahan) “sebuah file where Anda menyediakan informasi tentang halaman, videos, dan lainnya files pada Anda situs.” “XML” (terjemahan) “XML” bagian hanya berarti ini adalah written di sebuah tagged format itu machines read easily. Here’s smallest valid contoh:
<?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 ini top untuk bottom: pertama line says “this is XML, encoded as UTF-8.” (terjemahan) “ini adalah XML, encoded sebagai UTF-8.”
<urlset> wraps whole list. setiap <url> adalah one halaman. <loc> adalah halaman’s
full web address. <lastmod> adalah date ini last changed di sebuah meaningful cara —
dan ini adalah optional.
What ini melakukan (dan doesn’t melakukan)
sebuah sitemap helps mesin temukan Anda halaman faster — terutama baru halaman, atau halaman itu aren’t well ditautkan dari elsewhere pada Anda situs. itu’s upside.
catch sebagian besar people miss: submitting sebuah sitemap doesn’t guarantee pengindeksan. Google masih decides whether setiap halaman adalah worth keeping. sebuah sitemap adalah sebuah cara untuk help mesin pencari temukan Anda konten, not sebuah command untuk indeks ini. nyata nilai untuk me adalah what Anda dapat see afterward di Search Console — how banyak dari URLs Anda submitted actually got terindeks. itu gap adalah sebuah berguna diagnostic.
What untuk put di ini
pertahankan ini clean. sebuah sitemap seharusnya list hanya halaman Anda actually ingin terindeks —
Anda nyata, canonical halaman itu mengembalikan normal 200 respons. Leave out
redirects, duplicate URLs, dan anything Anda’ve atur ke noindex. Think dari ini sebagai sebuah
tidy inventory dari Anda dapat diindeks set, nothing more.
One penting poin dari confusion: leaving sebuah URL out dari Anda sitemap melakukan not
hapus ini dari Google. sebuah sitemap advertises halaman; ini doesn’t hide them. untuk
actually pertahankan sebuah halaman out dari indeks Anda perlu sebuah noindex tag — not sebuah missing
sitemap entry.
Where ini goes dan cara submit ini
- Save ini di sebuah sensible URL —
/sitemap.xmladalah conventional default. - tambahkan sebuah line untuk Anda
robots.txtso mesin dapat temukan ini:Sitemap: https://www.example.com/sitemap.xml. - Submit ini di Google Search Console (Sitemaps report) dan Bing Webmaster alat.
sebagian besar modern platforms (WordPress, Shopify, Wix, Squarespace, Webflow) generate sebuah sitemap untuk Anda automatically — Anda biasanya hanya perlu untuk submit ini. ingin full anatomy, limits, tags Google ignores, dan how hreflang berfungsi di sitemaps? Switch untuk Advanced 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 — sebuah sitemap XML adalah sebuah UTF-8 file dari canonical, dapat diindeks
<loc>URLs, setiap optionally carrying sebuah<lastmod>. ini aids penemuan, not pengindeksan — payoff adalah submitted-vs-terindeks signal di Search Console. Google ignores<priority>dan<changefreq>dan menggunakan<lastmod>hanya when ini adalah verifiably accurate (significant updates, tidak pernah sebuah blanket “today” (terjemahan) “today”). One file caps di 50 000 URLs atau 50MB uncompressed — past itu, split dan gunakan sitemap indeks. sertakan hanya200, canonical, dapat diindeks URLs; excluding sebuah URL adalah not yang sama sebagai noindexing ini. XML isn’t satu-satunya accepted format (RSS/Atom/txt berfungsi too), dan sitemaps adalah easiest place untuk manage hreflang di scale — though itu annotations go live pada sebuah lag, not instantly. Reference ini dirobots.txtdan submit ini di Search Console + Bing Webmaster alat.
What sebuah sitemap XML actually adalah
sebuah sitemap XML adalah sebuah file, written untuk sitemaps.org 0.9 protocol, itu lists
URLs pada Anda situs Anda ingin mesin untuk know tentang. Google’s own definition: “A
sitemap is a file where you provide information about the pages, videos, and other
files on your site, and the relationships between them.” (terjemahan) “sebuah
sitemap adalah sebuah file where Anda menyediakan informasi tentang halaman, videos, dan lainnya
files pada Anda situs, dan relationships antara them.” ini adalah sebuah penemuan aid dan
sebuah coverage diagnostic — explicitly not sebuah guarantee: “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.” (terjemahan) “sebuah sitemap helps search
mesin menemukan URLs pada Anda situs, tetapi ini doesn’t guarantee itu semua items di
Anda sitemap akan menjadi di-crawl dan terindeks.”
itu framing penting, because ini adalah where sebuah lot dari effort gets misspent. sitemap isn’t sebuah peringkat lever dan ini isn’t sebuah pengindeksan command. Here’s sebuah annotated minimal contoh:
<?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
- ** XML declaration** —
<?xml version="1.0" encoding="UTF-8"?>. Google adalah unambiguous here: “The sitemap file must be UTF-8 encoded.” (terjemahan) “ sitemap file harus menjadi UTF-8 encoded.” Get encoding wrong dan special characters break. <urlset>+ namespace — root element, denganxmlns="http://www.sitemaps.org/schemas/sitemap/0.9". namespace adalah what tells parser ini adalah sebuah sitemap; wrong atau missing namespace adalah sebuah umum Search Console error.<url>— one block per halaman.<loc>— diperlukan. “Use fully-qualified, absolute URLs in your sitemaps” (terjemahan) “gunakan fully-qualified, absolute URLs di Anda sitemaps” — not relative paths, dan di bawah ~2 048 characters. semua nilai harus menjadi entity-escaped:&becomes&,'becomes',"becomes",>becomes>, dan sebuah literal less-daripada becomes<.<lastmod>— optional; date halaman last significantly changed (more pada honesty aturan below).
ignored-tags truth
ini adalah single sebagian besar out-dari-date thing di sebagian besar sitemap tutorials. Two legacy
tags — <priority> dan <changefreq> — adalah ignored oleh Google. Gary
Illyes called priority “essentially a bag of noise,” (terjemahan) “essentially sebuah bag dari noise,” dan John Mueller memiliki said
priority dan perubahan frequency “doesn’t really play that much of a role with
Sitemaps anymore.” (terjemahan) “doesn’t really play itu much dari sebuah role dengan
Sitemaps anymore.” Bing memiliki confirmed yang sama: changefreq dan priority no longer
affect -nya crawling atau peringkat. Anda dapat leave them di (mereka melakukan no harm) atau strip
them out — mereka simply don’t melakukan anything.
<lastmod> adalah berbeda — melakukan not lump ini di dengan ignored tags. Google
melakukan gunakan <lastmod>, tetapi hanya when ini trusts ini, dan itu trust adalah roughly
binary: either Google believes Anda dates atau ini doesn’t. aturan adalah itu date
seharusnya reflect sebuah significant perubahan — “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.” (terjemahan) “sebuah update untuk main konten,
data terstruktur, atau tautan pada halaman adalah umumnya considered significant, however
sebuah update untuk copyright date adalah not.” failure mode I see constantly adalah
stamping setiap URL dengan today’s date pada setiap bangun. itu’s self-defeating:
Mueller memiliki called ini “just lazy,” (terjemahan) “hanya lazy,” noting ini adalah trivial untuk mesin untuk recognize
dan hanya membuat ini harder untuk them untuk spot genuinely updated halaman. Lie sering
enough dan, di Google’s kata, “eventually we’re not going to believe you
anymore.” (terjemahan) “eventually kami’re not going untuk believe Anda
anymore.” Bing leans bahkan harder pada <lastmod> sebagai sebuah freshness signal daripada Google
melakukan — so sebuah accurate date helps Anda pada both mesin, dan sebuah fake one hurts Anda pada
both.
Placement, naming, encoding, dan compression
- Placement/naming. There’s no diperlukan filename, tetapi
/sitemap.xmldi root adalah convention. oleh default sebuah sitemap hanya affects URLs di atau below -nya own path, so pertahankan ini tinggi enough untuk cover everything ini lists. one exception: Anda dapat host sebuah sitemap untuk sebuah berbeda situs jika Anda’ve verified ownership dari itu situs dan -nyarobots.txtpoin back untuk sitemap’s actual location — Google panggilan ini cross-submission, dan ini adalah mechanism behind sebuah sitemap indeks aggregating sitemaps hosted elsewhere. - Encoding. UTF-8, selalu.
- Compression. Anda’re allowed untuk gzip sebuah sitemap (sajikan ini sebagai
.xml.gz), which adalah worth doing pada besar files. penting nuance: ** 50MB cap adalah diukur uncompressed** — gzip saves bandwidth, not headroom terhadap size limit.
Limits → split + sitemap indeks
sebuah single sitemap adalah capped di 50 000 URLs atau 50MB uncompressed, whichever comes pertama. Google states ini directly: “All formats limit a single sitemap to 50MB (uncompressed) or 50,000 URLs.” (terjemahan) “semua formats limit sebuah single sitemap untuk 50MB (uncompressed) atau 50 000 URLs.” When Anda blow past either limit, Anda split list di seluruh multiple sitemap files dan reference them semua dari sebuah sitemap indeks — sebuah sitemap dari sitemaps. itu’s -nya own sibling topic; pendek versi adalah itu Anda submit indeks, dan one indeks dapat poin di up untuk 50 000 child sitemaps, so Anda’ll tidak pernah actually run out dari capacity.
Which URLs untuk sertakan — dan “exclude ≠ noindex” (terjemahan) “exclude ≠ noindex”
sertakan hanya URLs itu adalah dapat diindeks, canonical, dan kembalikan 200. itu berarti
no 3xx redirects, no non-canonical duplicates, no noindex halaman, no
robots-blocked URLs. sebuah clean sitemap dari exactly Anda dapat diindeks set adalah what membuat
Search Console submitted-vs-terindeks comparison meaningful — pollute ini dengan
junk dan Anda’ve thrown away diagnostic.
Now mechanical poin people get wrong: excluding sebuah URL dari Anda sitemap melakukan
not deindex ini. sitemap adalah sebuah advertisement, not sebuah gate. menghapus sebuah URL’s
entry hanya stops Anda advertising itu halaman; jika Google sudah knows tentang ini (via
tautan, history, atau lainnya source) ini stays di indeks. satu-satunya mechanisms itu
actually hapus sebuah halaman adalah sebuah noindex directive (dengan crawling allowed so Google
dapat see ini), sebuah 404/410, atau removals alat. So “take it out of the sitemap” (terjemahan) “take ini out dari sitemap”
adalah tidak pernah right jawaban untuk “how do I deindex this.” (terjemahan) “how melakukan I deindex ini.”
Accepted sitemap file formats
XML isn’t satu-satunya format Google accepts — worth knowing so Anda tidak assume Anda’re stuck hand-writing XML. Google panggilan XML “the most versatile of the sitemap formats,” (terjemahan) “paling versatile dari sitemap formats,” tetapi ini juga reads:
- RSS 2,0 / Atom feeds — handy because banyak CMSs sudah publish one; mereka carry halaman URLs hanya.
- mRSS — sebuah media RSS feed, digunakan untuk video.
- Plain text (
.txt) — literally one URL per line, web-halaman URLs hanya, UTF-8.
XML adalah masih right default because ini adalah satu-satunya format itu mendukung extensions (lastmod metadata, image, video, dan hreflang annotations). others adalah URL-hanya.
hreflang di sitemaps
jika Anda run sebuah multilingual atau multi-regional situs, sitemap adalah biasanya
easiest place untuk manage hreflang — Anda maintain whole language cluster di one
file alih-alih injecting kembalikan-tags ke setiap halaman template. (ini adalah one dari
three valid places hreflang dapat live; <head> dan header HTTP adalah
others.)
How ini adalah implemented. setiap <url> gets xhtml:link rel="alternate" children,
one per language/region versi, dan Anda declare namespace
xmlns:xhtml="http://www.w3.org/1999/xhtml" pada <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>** kembalikan-tag aturan.** ini adalah bagian itu bites people. setiap <url> element
harus list setiap alternate versi dari halaman — including itself. Google: “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.” (terjemahan) “setiap
undefined element harus memiliki sebuah child element undefined itu lists setiap alternate versi dari
halaman, including itself.” dan ini memiliki untuk menjadi bidirectional: “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.” (terjemahan) “jika halaman X tautan untuk halaman
Y, halaman Y harus tautan back untuk halaman X. jika ini adalah not case untuk semua halaman itu gunakan
hreflang annotations, itu annotations dapat menjadi ignored atau not interpreted
correctly.” tambahkan sebuah x-default entry untuk unmatched-language fallback. sebuah single
broken atau missing kembalikan-tag dapat invalidate whole set.
** cap counts <loc> URLs hanya.** sebuah relief untuk big international situs:
50 000-URL limit counts hanya <loc> halaman URLs, not hreflang
alternates. So sebuah sitemap dengan 50 000 halaman, setiap dengan ten language alternates,
masih fits — ini adalah location URLs itu count, not alternative URLs.
When ini actually goes live — budget days, not minutes. Here’s expectation untuk set, dan ini adalah mechanism alih-alih sebuah quotable line. Google parses Anda sitemap hreflang when ini re-fetches sitemap, tetapi annotations hanya take effect once semua URLs di set memiliki telah (re)di-crawl dan kembalikan-tags reconciled terhadap setiap lainnya. itu berarti there’s sebuah nyata lag antara publishing hreflang dan alternates menjadi honored, dan one slow-untuk-recrawl atau broken URL di set dapat hold rest up. Don’t expect ini untuk flip pada moment Anda submit — plan untuk ini untuk settle di atas days.
Reference ini dan submit ini
robots.txt— tambahkan sebuahSitemap:line dengan full absolute URL. ini juga lets mesin auto-menemukan ini.- Google Search Console — Sitemaps report (atau Search Console API) adalah primary submission metode; ini adalah juga where Anda read submitted-vs-terindeks diagnostic.
- Bing Webmaster alat — submit there too; Bing fetches ini quickly dan rechecks regularly.
One automation note dari how I think tentang ini: sebuah sitemap seharusnya menjadi generated automatically dari halaman Anda actually memiliki, so ini stays saat ini. sebuah hand-dibangun sitemap rots moment Anda situs perubahan. siblings untuk ini halaman — sitemaps overview, sitemap indeks untuk besar situs, dan image sitemap dan video sitemap extensions — cover rest dari family, dan broader penemuan topic ties sitemaps untuk lainnya cara mesin temukan Anda URLs.
AI summary
sebuah condensed take pada Advanced versi:
- sebuah sitemap XML adalah sebuah UTF-8 file listing canonical, dapat diindeks URLs Anda ingin
mesin untuk know tentang — setiap
<url>memiliki sebuah diperlukan<loc>(absolute URL) dan sebuah optional<lastmod>. Root adalah<urlset>dengansitemaps.org/0.9namespace. - ini aids penemuan, not pengindeksan. Submitting ini doesn’t guarantee sebuah halaman gets terindeks; nyata payoff adalah submitted-vs-terindeks diagnostic di Search Console.
<priority>dan<changefreq>adalah ignored oleh Google (dan Bing). Don’t lump<lastmod>di dengan them — ini adalah digunakan, tetapi hanya when verifiably accurate (significant konten perubahan, tidak pernah sebuah blanket “today” (terjemahan) “today” date).- Limits: 50 000 URLs atau 50MB uncompressed, whichever comes pertama. Past itu, split files dan gunakan sitemap indeks. Gzip adalah allowed tetapi 50MB cap adalah uncompressed size.
- sertakan hanya
200, canonical, dapat diindeks URLs. Entity-escape& ' " < >. Excluding sebuah URL ≠ noindexing ini — removal perlunoindex/404, not sebuah missing sitemap entry. - XML isn’t satu-satunya format — RSS/Atom dan plain
.txtberfungsi too (URL-hanya); XML adalah satu-satunya one itu mendukung image/video/hreflang extensions. - hreflang di sitemaps:
xhtml:link rel="alternate"children +xmlns:xhtmlnamespace; setiap<url>harus list semua alternates including itself, bidirectionally, plusx-default. 50 000 cap counts hanya<loc>URLs, not alternates. Processed pada sitemap re-fetch tetapi live hanya setelah semua URLs di set adalah recrawled/reconciled — budget days, not minutes. - Submit ini via
robots.txtSitemap:line, Google Search Console, dan Bing Webmaster alat. Generate ini automatically so ini stays saat ini.
Official documentation
Primary-source documentation dari mesin pencari.
- Sitemaps overview — what sebuah sitemap adalah, whether Anda perlu one, dan itu ini doesn’t guarantee pengindeksan.
- bangun dan submit sebuah sitemap — 50 000/50MB limits, UTF-8 requirement, absolute-URL aturan, accepted formats, dan
<lastmod>“significant update” (terjemahan) “significant update” definition. - Manage sitemaps dengan sebuah sitemap indeks file — splitting besar sitemaps dan sitemap indeks.
- Tell Google tentang localized versi dari Anda halaman — hreflang di sitemaps via
xhtml:link, kembalikan-tag aturan, danx-default. - Combine sitemap extensions — putting image/video/hreflang di one sitemap.
- Sitemaps report (Search Console help) — what setiap submission error berarti dan cara fix ini.
- sitemaps.org protocol — underlying
0.9spec semua mesin share.
Bing / Microsoft
- Keeping konten Discoverable dengan Sitemaps di AI-Powered Search (Jul 2025) — Bing’s stance itu XML adalah preferred dan
<lastmod>adalah sebuah key signal. - Importance dari Setting lastmod Tag di Anda Sitemap (Feb 2023) — why Bing weights
<lastmod>untuk recrawl decisions.
Quotes dari source
pada—record statements dari Google dan Bing. setiap tautan adalah sebuah deep tautan itu jumps untuk quoted passage pada source halaman.
Google — what sebuah sitemap adalah dan melakukan
- “A sitemap is a file where you provide information about the pages, videos, and other files on your site, and the relationships between them.” (terjemahan) “sebuah sitemap adalah sebuah file where Anda menyediakan informasi tentang halaman, videos, dan lainnya files pada Anda situs, dan relationships antara them.” — Sitemaps overview. Jump untuk 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.” (terjemahan) “sebuah sitemap helps mesin pencari menemukan URLs pada Anda situs, tetapi ini doesn’t guarantee itu semua items di Anda sitemap akan menjadi di-crawl dan terindeks.” Jump untuk quote
Google — format, limits, dan encoding
- “All formats limit a single sitemap to 50MB (uncompressed) or 50,000 URLs.” (terjemahan) “semua formats limit sebuah single sitemap untuk 50MB (uncompressed) atau 50 000 URLs.” — bangun dan submit sebuah sitemap. Jump untuk quote
- “The sitemap file must be UTF-8 encoded.” (terjemahan) “ sitemap file harus menjadi UTF-8 encoded.” Jump untuk quote
- “Use fully-qualified, absolute URLs in your sitemaps.” (terjemahan) “gunakan fully-qualified, absolute URLs di Anda sitemaps.” Jump untuk quote
Google — ignored tags, dan lastmod aturan
- “we ignore those. It’s essentially a bag of noise.” (terjemahan) “kami ignore itu. ini adalah essentially sebuah bag dari noise.” — Gary Illyes, pada
<priority>/<changefreq>. Read coverage - “Priority and change frequency doesn’t really play that much of a role with Sitemaps anymore.” (terjemahan) “Priority dan perubahan frequency doesn’t really play itu much dari sebuah role dengan Sitemaps anymore.” — John Mueller. Read 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.” (terjemahan) “sebuah update untuk main konten, data terstruktur, atau tautan pada halaman adalah umumnya considered significant, however sebuah update untuk copyright date adalah not.” — pada what
<lastmod>seharusnya reflect. Jump untuk 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.” (terjemahan) “setting today’s date di sebuah sitemap file isn’t going untuk menjadi something itu berfungsi di favor dari anyone, ini adalah hanya lazy.” — John Mueller. Read coverage
- “it’s binary, or at least was last time I checked. we either trust it or not.” (terjemahan) “ini adalah binary, atau setidaknya adalah last time I diperiksa. kami either trust ini atau not.” — Gary Illyes, pada whether Google trusts Anda
<lastmod>. Read coverage
Google — 50 000 cap counts location URLs, not hreflang alternates
- 50 000-URL limit “is just the location URL” (terjemahan) “adalah hanya location URL” count — not hreflang alternate URLs. — John Mueller. Read coverage
Google — hreflang kembalikan 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.” (terjemahan) “setiap undefined element harus memiliki sebuah child element undefined itu lists setiap alternate versi dari halaman, including itself.” — Localized versi docs. Jump untuk 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.” (terjemahan) “jika halaman X tautan untuk halaman Y, halaman Y harus tautan back untuk halaman X. jika ini adalah not case untuk semua halaman itu gunakan hreflang annotations, itu annotations dapat menjadi ignored atau not interpreted correctly.” Jump untuk quote
Bing — XML dan 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.” (terjemahan) “XML remains preferred format untuk sitemaps, sebagai ini mendukung structured metadata like lastmod, which helps Bing assess konten freshness dan relevance more effectively.” Jump untuk quote
sitemap XML checklist
bangun ini right
- File adalah UTF-8 encoded, dengan
<?xml version="1.0" encoding="UTF-8"?>pada line one. - Root adalah
<urlset>denganxmlns="http://www.sitemaps.org/schemas/sitemap/0.9". - setiap
<loc>adalah sebuah fully-qualified, absolute URL di bawah ~2 048 characters. - semua nilai adalah entity-escaped (
& ' " > <). -
<priority>dan<changefreq>dihapus atau accepted-sebagai-ignored (Google ignores them). -
<lastmod>present hanya where ini reflects sebuah significant perubahan — tidak pernah sebuah blanket “today” (terjemahan) “today” pada setiap URL. - File adalah di bawah 50 000 URLs dan 50MB uncompressed; jika not, split dan tambahkan sebuah sitemap indeks.
sertakan right URLs
- hanya canonical, dapat diindeks,
200-status URLs. - No
3xxredirects, no non-canonical duplicates, nonoindex/robots-blocked URLs. - Remember: leaving sebuah URL out adalah not sebuah cara untuk deindex ini — gunakan
noindexuntuk itu.
Ship dan monitor ini
-
Sitemap:line ditambahkan untukrobots.txtdengan full absolute URL. - Submitted di Google Search Console dan Bing Webmaster alat.
- Generated automatically dari nyata URLs so ini stays saat ini.
- Watch submitted-vs-terindeks angka di Search Console; split oleh bagian/jenis untuk see which bagian dari situs adalah di bawah-terindeks.
sitemap XML — cheat sheet
Tag reference
| Tag | diperlukan? | What ini melakukan | Google’s treatment |
|---|---|---|---|
<urlset> | diperlukan | Root element; declares 0.9 namespace | Parsed (wrong/missing namespace = error) |
<url> | diperlukan | One block per halaman | Parsed |
<loc> | diperlukan | halaman’s fully-qualified absolute URL | digunakan |
<lastmod> | Optional | Date dari last significant perubahan | digunakan — tetapi hanya jika verifiably accurate |
<changefreq> | Optional | Hint di how sering halaman perubahan | Ignored |
<priority> | Optional | Relative importance (0,0–1,0) | Ignored |
xhtml:link rel="alternate" | Optional | hreflang alternate versi | digunakan (perlu xmlns:xhtml, kembalikan tags) |
sertakan vs exclude
| sertakan | Exclude |
|---|---|
| Canonical URLs | Non-canonical / duplicate URLs |
| dapat diindeks halaman | noindex halaman |
200-status halaman | 3xx redirects, 4xx/5xx errors |
| halaman Anda ingin di-crawl & terindeks | robots-blocked URLs |
Fast facts
- Limits: 50 000 URLs atau 50MB uncompressed, whichever pertama → split + sitemap indeks.
- Encoding: UTF-8. URLs: absolute, entity-escaped.
- Gzip allowed (
.xml.gz); 50MB cap adalah uncompressed size. - hreflang 50 000 cap counts
<loc>URLs hanya, not alternates. - Excluding sebuah URL ≠ noindexing ini.
- Accepted formats: XML ( versatile one), RSS/Atom, plain
.txt.
sebuah minimal valid sitemap XML
smallest correct sitemap — declaration, namespaced <urlset>, one <url> dengan
sebuah diperlukan <loc> dan sebuah 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>Note kedua <loc>: & di kueri string adalah entity-escaped untuk
&. Raw &, ', ", <, dan > characters akan break XML.
Gzip ini untuk besar files
Anda dapat sajikan sitemap gzipped untuk save bandwidth — name ini .xml.gz:
# Compress a sitemap; Google and Bing both accept .xml.gz
gzip -k sitemap.xml # produces sitemap.xml.gz, keeps the originalRemember size limit adalah diperiksa uncompressed — gzip cuts transfer size, not
50MB/50 000-URL ceiling. (pada Windows, gunakan apa pun zip alat itu produces sebuah benar
gzip stream, atau Compress-Archive adalah not gzip — prefer 7-Zip’s gzip output.)
Reference ini di robots.txt
poin mesin di ini dengan sebuah Sitemap: line (full absolute URL; auto-penemuan
berfungsi dari here):
User-agent: *
Allow: /
Sitemap: https://www.example.com/sitemap.xmlValidate ini
sebelum Anda submit, sanity-periksa file:
- Fetch ini dan confirm ini mengembalikan
200dengan sebuah nyata XML body (not Anda HTML 404 halaman — “Unsupported format” (terjemahan) “Unsupported format” di Search Console biasanya berarti Anda submitted sebuah HTML halaman oleh mistake). - periksa well-formedness locally dengan
xmllint:
# Confirms the XML parses; flags unescaped & < > and mismatched tags
xmllint --noout sitemap.xml && echo "well-formed"- Submit dan watch Search Console Sitemaps report untuk parsed URL count dan apa pun errors, lalu track submitted-vs-terindeks di atas following days.
alat untuk membangun dan memeriksa Anda sitemap XML
- Google indeks Checker — once Anda
sitemap adalah live, ini adalah how Anda periksa lainnya side dari diagnostic:
whether sebuah URL Anda submitted adalah actually dapat diindeks. ini surfaces kode status,
redirects,
noindex, dan canonical signals untuk sebuah URL, lalu routes Anda untuk Search Console’s pemeriksaan URL untuk Google’s nyata jawaban. berguna untuk chasing down why sebuah submitted URL isn’t showing up di terindeks count.
Ready-untuk-paste prompts untuk sitemap berfungsi
Audit sebuah sitemap file untuk spec compliance. Paste raw XML konten dari Anda sitemap (atau sebuah representative chunk dari ini) dan tanyakan sebuah AI assistant untuk periksa ini terhadap aturan di ini artikel:
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 sebuah list dari concrete violations (not sebuah rewrite) — treat generic
“looks fine” (terjemahan) “looks fine” output sebagai sebuah signal untuk periksa file yourself dengan xmllint
instead.
Review hreflang kembalikan tags di sebuah sitemap. jika Anda’re managing hreflang via
sitemap xhtml:link blocks, paste sebuah bagian dari file dan tanyakan untuk sebuah
bidirectionality periksa:
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]ini catches exact failure mode covered above — one missing kembalikan tag dapat get whole hreflang set ignored — faster daripada eyeballing sebuah besar file oleh hand.
Resources worth Anda time
My related writing
- When seharusnya Anda Worry tentang anggaran crawling? — where clean sitemaps fit ke crawl efficiency, dan why Anda sitemap seharusnya list hanya dapat diindeks URLs.
- Enterprise SEO teknis — automate-ini-atau-ini-rots posture, dan sitemaps di scale.
- situs web Migration: Definitive Guide — why I pertahankan sebuah sitemap dari old URLs sekitar setelah sebuah migration untuk watch them drop out dari indeks di GSC.
- Hreflang: Easy Guide — three valid places hreflang dapat live, including sitemap, dan tradeoffs.
- Beginner’s Guide untuk SEO teknis — where sitemaps sit di bigger picture.
My speaking
- How Search berfungsi (SlideShare) — my walkthrough dari crawling, penemuan, dan pengindeksan. (Standing disclaimer: “This is my understanding of systems… not going to be 100% complete or accurate.” (terjemahan) “ini adalah my understanding dari sistem… not going untuk menjadi 100% complete atau accurate.”)
dari others
- Google’s Sitemaps documentation — canonical source untuk formats, limits, dan extensions.
- sitemaps.org — cross-mesin
0.9protocol semua dari ini adalah dibangun pada. - Bing’s Sitemaps di AI-Powered Search — Bing’s louder-daripada-Google take pada
<lastmod>. - Bing’s Importance dari Setting lastmod Tag di Anda Sitemap — menjelaskan how Bing menggunakan
<lastmod>untuk recrawl prioritization. - mesin pencari Roundtable — sitemap coverage — aggregated Google dan Bing statements pada sitemaps, including Gary Illyes pada
<priority>dan John Mueller pada<lastmod>accuracy. - Google Search Central Blog: What Googlebot looks untuk di Anda sitemap — Google’s own post confirming
<lastmod>dan menghapus ping protocol. - mesin pencari Journal — sitemap XML — industry coverage dari sitemap best practices dan umum mistakes.
Test yourself: sitemap XML
Five pertanyaan pada sitemap XML format specifics — tags, limits, dan hreflang. Pick sebuah jawaban untuk setiap, lalu periksa.
Log perubahan
Diperbarui 18 Jul 2026.
Ringkasan editorial dan detail perubahan yang tercatat.Detail perubahan
-
Catatan perubahan terperinci saat ini tersedia dalam bahasa Inggris.
Perbandingan lengkap tidak tersedia — tidak ada cuplikan sebelumnya yang diarsipkan untuk revisi ini.