WordPress sitemap: find it, turn it on and submit it to Google

By · · · 6 min read

WordPress sitemap: find it, turn it on and submit it to Google

The WordPress sitemap is at /wp-sitemap.xml on any site running WordPress 5.5 or later, unless an SEO plugin replaces it with its own. Here is the address for core WordPress, Yoast SEO, Rank Math and All in One SEO, how to turn the sitemap on, how to submit it to Google, and how to fix the errors that come up most often.

Advertisement

WordPress sitemap URL for each setup

A WordPress site has one main sitemap file, the sitemap index, which links to all the others. Its address depends on what creates it:

Setup Sitemap index address
WordPress core, since version 5.5 /wp-sitemap.xml
Yoast SEO /sitemap_index.xml
Rank Math /sitemap_index.xml
All in One SEO (AIOSEO) /sitemap.xml

Add the address to the domain name, for example https://example.com/wp-sitemap.xml. When an SEO plugin publishes its own sitemap, use the plugin’s address. Under the WordPress 5.5 announcement, a core contributor confirms that Yoast SEO turns the core sitemap off, and Yoast’s specification redirects /sitemap.xml to /sitemap_index.xml.

Three ways to find the sitemap of a WordPress site:

  1. Try the addresses in the table, starting with /wp-sitemap.xml and /sitemap_index.xml.
  2. Open /robots.txt on the same domain and look for a line that starts with Sitemap:. WordPress adds this line for its own sitemap index, according to the same announcement.
  3. In the dashboard, follow the plugin’s link: “View the XML sitemap” in Yoast SEO, the address at the top of each Rank Math sitemap tab, or “Open Sitemap” in AIOSEO.

If Settings > Permalinks is set to Plain, the core index has no .xml address. The WordPress code reference shows that it is then served at /?sitemap=index.

Create or turn on the sitemap

You do not need a plugin to create a WordPress sitemap. Since version 5.5, WordPress publishes one by itself for posts, pages, categories, tags, other public content types and author archives. If /wp-sitemap.xml shows nothing, open Settings > Reading: when the site discourages search engines from indexing it, WordPress turns its sitemaps off.

With an SEO plugin, the sitemap is a setting:

  • Yoast SEO. Go to Yoast SEO > Settings > Site features and, under Technical SEO, set the “XML sitemaps” switch to On.
  • Rank Math. The Sitemap module must be active in Rank Math’s list of modules. Its options are under Sitemap Settings.
  • All in One SEO. Go to All in One SEO > Sitemaps. On the General Sitemap screen, “Enable Sitemap” must be on. AIOSEO notes that a disabled sitemap returns a 404 error.

Use one sitemap at a time. Yoast’s help asks you to turn off other sitemap plugins and remove any physical sitemap file from the server before you turn its own sitemap on.

Advertisement

What the sitemap index contains

A sitemap index lists other sitemaps, not your pages. Each sitemap entry gives the address of one file in loc and, optionally, the date of its last change in lastmod. Each of those files is a urlset with one url entry per page.

The sitemaps.org protocol caps a file at 50,000 URLs and 50MB, but WordPress splits much sooner: core puts at most 2,000 entries in one sitemap, Yoast SEO 1,000 by default, and AIOSEO 1,000 per sitemap page when its sitemap indexes are on. That is why a small blog can already have a dozen files. Read more on how a sitemap index works, or extract every sitemap URL to a CSV file.

Google’s sitemap guide adds that Google ignores priority and changefreq, and uses lastmod only when it is consistently and verifiably accurate.

Submit the sitemap to Google Search Console

  1. Open Search Console for your site and go to the Sitemaps report.
  2. In “Add a new sitemap”, enter the index address from the table above. The domain is already filled in, so wp-sitemap.xml or sitemap_index.xml is enough.
  3. Click “Submit”.

Submit the index only: Google reads the sitemaps it lists. A Sitemap: line in robots.txt is another way to point Google to it, and AIOSEO can submit its sitemaps by itself once it is connected to Search Console. Google’s guide calls a sitemap a hint: submitting one does not guarantee that Google downloads it or crawls every URL.

The report then shows the status of each file, the date Google last read it and the number of pages it found. Our article on sitemaps and SEO explains what the Search Console statuses mean. For the “Couldn’t fetch” status, see why Google can’t fetch a sitemap.

WordPress sitemap not found or not working

  • 404 Not Found. Check the address first: with an SEO plugin, use the plugin’s address, with the same www and https form as the site address in Settings > General. If it is right, go to Settings > Permalinks and click “Save Changes” without changing anything. Yoast and Rank Math both give this fix, which rebuilds the rules that serve the sitemap.
  • Still 404 on an Nginx server. The server then needs the plugin’s own rewrite rules. Yoast and Rank Math both publish them: ask your host to add them.
  • Blank page, or a header with no URLs. Yoast lists three causes: the XSL file cannot load, the XML is invalid, or a setting of the W3 Total Cache plugin.
  • “XML declaration not at start of entity” in Search Console. Something prints blank space before <?xml, usually a plugin or the theme.
  • New posts missing. The sitemap is probably cached. Rank Math recommends excluding it from your caching plugin, since a cached sitemap stops showing your latest posts.
  • One page missing. Yoast leaves out pages set to noindex and pages whose canonical URL points elsewhere.

To find errors inside the file, paste it into the free Sitemap Checker: it lists bad URLs, invalid dates and duplicates, each with its line. For a live site, the XMLNest extension runs the same checks in its Issues tab, and on a sitemap index it loads every child sitemap from the same site into one table, up to 50.

Reading it in Chrome after 17 November 2026

A core or Yoast sitemap links to an XSL stylesheet with a <?xml-stylesheet ... ?> line, which older versions of Chrome use to show the file as a table. Chrome’s announcement says that XSLT stops working in Chrome 158, released on 17 November 2026, except for sites in its origin trial and browsers managed with an enterprise policy. In Chrome 158 and later, the browser shows a plain XML tree under an English notice about XSLT. The file on your site stays the same. Learn more about what breaks when XSLT leaves Chrome.

To keep the table, install XSLT Polyfill, the extension Chrome’s announcement links to, or XMLNest, which also has a sitemap reader view you can filter, sort and export to CSV or JSON. To read the raw file with clean indentation, format XML online in your browser.

To read any other XML file, see how to open an XML file in Chrome.

Advertisement

Questions

Do I need a plugin to create a WordPress sitemap?

No. Since version 5.5, WordPress publishes a sitemap by itself at /wp-sitemap.xml, as long as the site does not discourage search engines in Settings > Reading. An SEO plugin such as Yoast SEO, Rank Math or All in One SEO replaces it with its own sitemap and its own settings.

Where is the Yoast SEO sitemap?

At /sitemap_index.xml, for example https://example.com/sitemap_index.xml. Yoast also redirects /sitemap.xml to it. In the dashboard, the XML sitemaps feature under Yoast SEO > Settings > Site features has a View the XML sitemap link. If the address returns a 404 error, save Settings > Permalinks once without changing anything.

Why does my WordPress sitemap have several files?

WordPress and the SEO plugins split the addresses by content type, such as posts, pages and categories, and limit the size of each file: WordPress core puts at most 2,000 entries in one sitemap, Yoast SEO 1,000 by default. The sitemap index links to all of them.

Which sitemap address should I submit to Google Search Console?

The sitemap index: /wp-sitemap.xml for WordPress core, /sitemap_index.xml for Yoast SEO and Rank Math, /sitemap.xml for All in One SEO. Google reads the sitemaps that the index lists, and the Sitemaps report shows it as a sitemap index.

Is sitemap.xml the same as wp-sitemap.xml?

Not always. The address depends on what generates the sitemap: /sitemap.xml is the default name in All in One SEO, while WordPress core uses /wp-sitemap.xml. When in doubt, open /robots.txt on the site and look for the line that starts with Sitemap:.

Sources

  1. Make WordPress Core: New XML Sitemaps Functionality in WordPress 5.5 (checked on 30 October 2026)
  2. WordPress Developer Resources: WP_Sitemaps_Index::get_index_url() (checked on 30 October 2026)
  3. Yoast: XML sitemaps in the Yoast SEO plugin (checked on 30 October 2026)
  4. Yoast: Common XML sitemap errors (checked on 30 October 2026)
  5. Yoast developer portal: Yoast SEO XML Sitemaps, Functional specification (checked on 30 October 2026)
  6. Rank Math: How to Configure Sitemaps in Rank Math - Best Settings and Tips (checked on 22 October 2026)
  7. Rank Math: Why the Sitemap_Index.xml is Throwing a 404 Error (checked on 30 October 2026)
  8. AIOSEO: How to Create an XML Sitemap (checked on 30 October 2026)
  9. AIOSEO: Submitting a Sitemap to Google (checked on 22 October 2026)
  10. sitemaps.org - Protocol (checked on 14 October 2026)
  11. Google Search Central: Build and Submit a Sitemap (checked on 22 October 2026)
  12. Sitemaps report - Search Console Help (checked on 14 October 2026)
  13. Chrome for Developers: Removing XSLT for a more secure browser (checked on 14 October 2026)
  14. XSLT Polyfill - Chrome Web Store (checked on 14 October 2026)