{
    "title": "XML sitemap",
    "seo_title": "XML sitemap: definition, rules and WordPress sitemap",
    "h1": "XML sitemap",
    "description": "XML sitemap: what it is for, Google's limits and rules, WordPress's built-in wp-sitemap.xml and how it can leak author usernames.",
    "lead": "An XML sitemap is a file listing the URLs of a website that you want crawled, sometimes with their last modification date. It helps search engines discover pages, especially on a large or new site, but guarantees neither their crawling nor their indexing.",
    "language": "en",
    "locale": "en-US",
    "type": "definition",
    "url": "https://www.wp-feint.com/glossary/xml-sitemap/",
    "canonical": "https://www.wp-feint.com/glossary/xml-sitemap/",
    "markdown": "https://www.wp-feint.com/glossary/xml-sitemap/index.md",
    "json": "https://www.wp-feint.com/glossary/xml-sitemap/index.json",
    "published": "2026-10-28T08:00:00+00:00",
    "modified": "2026-11-22T12:08:35+00:00",
    "site": {
        "name": "WP Feint",
        "url": "https://www.wp-feint.com/"
    },
    "translations": [
        {
            "language": "en",
            "hreflang": "en-US",
            "title": "XML sitemap",
            "url": "https://www.wp-feint.com/glossary/xml-sitemap/",
            "markdown": "https://www.wp-feint.com/glossary/xml-sitemap/index.md",
            "json": "https://www.wp-feint.com/glossary/xml-sitemap/index.json"
        },
        {
            "language": "fr",
            "hreflang": "fr-FR",
            "title": "Sitemap XML",
            "url": "https://www.wp-feint.com/fr/definitions/sitemap-xml/",
            "markdown": "https://www.wp-feint.com/fr/definitions/sitemap-xml/index.md",
            "json": "https://www.wp-feint.com/fr/definitions/sitemap-xml/index.json"
        },
        {
            "language": "es",
            "hreflang": "es-ES",
            "title": "Sitemap XML",
            "url": "https://www.wp-feint.com/es/glosario/sitemap-xml/",
            "markdown": "https://www.wp-feint.com/es/glosario/sitemap-xml/index.md",
            "json": "https://www.wp-feint.com/es/glosario/sitemap-xml/index.json"
        },
        {
            "language": "de",
            "hreflang": "de-DE",
            "title": "XML-Sitemap",
            "url": "https://www.wp-feint.com/de/glossar/xml-sitemap/",
            "markdown": "https://www.wp-feint.com/de/glossar/xml-sitemap/index.md",
            "json": "https://www.wp-feint.com/de/glossar/xml-sitemap/index.json"
        },
        {
            "language": "it",
            "hreflang": "it-IT",
            "title": "Sitemap XML",
            "url": "https://www.wp-feint.com/it/glossario/sitemap-xml/",
            "markdown": "https://www.wp-feint.com/it/glossario/sitemap-xml/index.md",
            "json": "https://www.wp-feint.com/it/glossario/sitemap-xml/index.json"
        },
        {
            "language": "pt",
            "hreflang": "pt-BR",
            "title": "Sitemap XML",
            "url": "https://www.wp-feint.com/pt/glossario/sitemap-xml/",
            "markdown": "https://www.wp-feint.com/pt/glossario/sitemap-xml/index.md",
            "json": "https://www.wp-feint.com/pt/glossario/sitemap-xml/index.json"
        },
        {
            "language": "nl",
            "hreflang": "nl-NL",
            "title": "XML-sitemap",
            "url": "https://www.wp-feint.com/nl/woordenlijst/xml-sitemap/",
            "markdown": "https://www.wp-feint.com/nl/woordenlijst/xml-sitemap/index.md",
            "json": "https://www.wp-feint.com/nl/woordenlijst/xml-sitemap/index.json"
        }
    ],
    "headings": [
        {
            "level": 1,
            "text": "XML sitemap"
        },
        {
            "level": 2,
            "text": "What it does, and what it doesn't"
        },
        {
            "level": 2,
            "text": "The rules to follow"
        },
        {
            "level": 2,
            "text": "Submitting it to search engines"
        },
        {
            "level": 2,
            "text": "For WordPress"
        },
        {
            "level": 2,
            "text": "A security point: the author sitemap"
        }
    ],
    "body": "An XML sitemap isn't meant for visitors but for crawlers. It is a list of URLs, each optionally with its last modification date, that helps the search engine find pages it might have missed by following links: recent content, deep pages, new sites that don't get many links yet. There are also extensions for images, videos and news.\n\n```\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n  <url>\n    <loc>https://example.com/wordpress-backups/</loc>\n    <lastmod>2026-10-12</lastmod>\n  </url>\n</urlset>\n```\n\n## What it does, and what it doesn't\n\nGoogle describes a sitemap as a mere hint: submitting one guarantees neither the crawling nor the [indexing](https://www.wp-feint.com/glossary/indexing/) of the listed URLs. Nor does it replace [internal linking](https://www.wp-feint.com/glossary/internal-linking/), which remains the main means of discovery. Google even considers that a small site (about 500 pages or fewer) with good internal links can do without one. A sitemap becomes truly useful for large sites, new sites and sites that publish a lot of images, videos or news.\n\n## The rules to follow\n\n- **Size**: 50 MB uncompressed or 50,000 URLs maximum per file. Beyond that, split it into several sitemaps grouped in a sitemap index file.\n- **Absolute URLs**, with the protocol and domain (`https://example.com/page/`), never relative ones.\n- **Indexable pages only**: the [canonical](https://www.wp-feint.com/glossary/canonical-url/) version of each page, returning a 200 status. Including a URL in the sitemap is a weak signal in favor of its canonicalization.\n- **An honest `lastmod` date**: Google only uses it if it is consistently accurate. Google ignores the `priority` and `changefreq` tags.\n\n## Submitting it to search engines\n\nTwo complementary methods: the Sitemaps report in Search Console (Bing Webmaster Tools offers the equivalent), which also shows read errors, and a `Sitemap:` line in the [robots.txt file](https://www.wp-feint.com/glossary/robots-txt/), which all search engines read.\n\n## For WordPress\n\nSince version 5.5, WordPress generates a sitemap on its own. The index lives at `/wp-sitemap.xml` and points to sitemaps for public content types (posts, pages, custom post types), taxonomies and author archives, with 2,000 entries per file by default. WordPress announces it automatically in its virtual robots.txt. The sitemap is disabled when the “Discourage search engines from indexing this site” checkbox is checked, and it requires the SimpleXML PHP extension.\n\nSEO plugins such as Yoast SEO replace this sitemap with their own (often `/sitemap_index.xml`), with more settings: excluding a content type, a taxonomy or a specific page. Keep only one, and submit that one in Search Console.\n\n## A security point: the author sitemap\n\nThe users sitemap (`wp-sitemap-users-1.xml` in core) lists author archives, whose URL contains each author's login username by default. It is one of the sources of [WordPress user enumeration](https://www.wp-feint.com/wordpress-user-enumeration/). On a site with one or two authors, these archives often add nothing to SEO: you can remove them from the sitemap through your SEO plugin or the `wp_sitemaps_add_provider` filter. The [hardening](https://www.wp-feint.com/features/hardening/) module of WP Feint Pro closes this leak along with the other enumeration paths, without touching the sitemap of your content.\n\n## Related terms\n\n- [Robots.txt](https://www.wp-feint.com/glossary/robots-txt/)\n- [Indexing](https://www.wp-feint.com/glossary/indexing/)\n- [Internal linking](https://www.wp-feint.com/glossary/internal-linking/)\n- [Canonical URL](https://www.wp-feint.com/glossary/canonical-url/)\n- [Crawl budget](https://www.wp-feint.com/glossary/crawl-budget/)\n\n\n## Sources\n\n- [Google Search Central : présentation des sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview)\n- [Google Search Central : créer et envoyer un sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap)\n- [WordPress Core : nouveaux plans de site XML dans WordPress 5.5](https://make.wordpress.org/core/2020/07/22/new-xml-sitemaps-functionality-in-wordpress-5-5/)",
    "definition": "An XML sitemap is a file listing the URLs of a website that you want crawled, sometimes with their last modification date. It helps search engines discover pages, especially on a large or new site, but guarantees neither their crawling nor their indexing.",
    "group": "SEO and marketing",
    "aka": [
        "sitemap",
        "sitemap.xml",
        "wp-sitemap.xml",
        "sitemap index",
        "site map"
    ],
    "related": [
        {
            "title": "Robots.txt",
            "url": "https://www.wp-feint.com/glossary/robots-txt/",
            "markdown": "https://www.wp-feint.com/glossary/robots-txt/index.md"
        },
        {
            "title": "Indexing",
            "url": "https://www.wp-feint.com/glossary/indexing/",
            "markdown": "https://www.wp-feint.com/glossary/indexing/index.md"
        },
        {
            "title": "Internal linking",
            "url": "https://www.wp-feint.com/glossary/internal-linking/",
            "markdown": "https://www.wp-feint.com/glossary/internal-linking/index.md"
        },
        {
            "title": "Canonical URL",
            "url": "https://www.wp-feint.com/glossary/canonical-url/",
            "markdown": "https://www.wp-feint.com/glossary/canonical-url/index.md"
        },
        {
            "title": "Crawl budget",
            "url": "https://www.wp-feint.com/glossary/crawl-budget/",
            "markdown": "https://www.wp-feint.com/glossary/crawl-budget/index.md"
        }
    ],
    "sources": [
        {
            "title": "Google Search Central : présentation des sitemaps",
            "url": "https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview"
        },
        {
            "title": "Google Search Central : créer et envoyer un sitemap",
            "url": "https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap"
        },
        {
            "title": "WordPress Core : nouveaux plans de site XML dans WordPress 5.5",
            "url": "https://make.wordpress.org/core/2020/07/22/new-xml-sitemaps-functionality-in-wordpress-5-5/"
        }
    ],
    "format": "application/json"
}