Plain WordPress serves /wp-sitemap.xml. Yoast documents /sitemap_index.xml and redirects /sitemap.xml to it. Rank Math's docs reference sitemap_index.xml too. AIOSEO's docs name no path and tell you to use its Open Sitemap button. Open the address in a browser, confirm it lists your content, then submit that one.
Where each one publishes
| Source | Sitemap address (per its docs) | Per-file limit | Switch off |
|---|---|---|---|
| WordPress core (5.5+) | /wp-sitemap.xml | 2,000 entries by default, filterable; index up to 50,000 sitemaps | add_filter( 'wp_sitemaps_enabled', '__return_false' ); |
| Yoast SEO | /sitemap_index.xml; /sitemap.xml redirects there | 1,000 items by default, changeable with a filter | Yoast SEO, Settings, Site features, XML sitemaps toggle |
| Rank Math | sitemap_index.xml (seen in its server rule) | "Links Per Sitemap" setting; default not stated on the page we read | Not stated on that page |
| AIOSEO | Not named in the doc we read; use Sitemaps, then Open Sitemap | Not stated | Enable Sitemap toggle per sitemap tab (a search snippet of AIOSEO's docs; the URL then returns 404) |
Where a cell says "not stated", we could not find it on the documentation page we read, and we have not tested it on a live install. Check your own site rather than assuming.
What core WordPress includes
The 5.5 announcement says sitemaps are created by default for public post types and taxonomies, author archives and the homepage. WordPress's generated robots.txt references the index. Core also disables sitemaps by default when Site Visibility is set to discourage search engines, and the wp_sitemaps_enabled filter can override that.
Disabling the core sitemap
Only do this if a plugin provides the sitemap you want. The core filter, from the WordPress announcement:
// theme functions.php or a small plugin
add_filter( 'wp_sitemaps_enabled', '__return_false' );
Core also lets you remove single providers with the wp_sitemaps_add_provider filter. Of the plugin docs we read, only Yoast's covers conflicts: it tells you to disable other sitemap plugins and delete physical sitemap files over FTP first. An older AIOSEO article, seen only as a search snippet, says the default WordPress sitemaps are turned off automatically in the latest version of that time; confirm on your own install.
Check it and submit it
- Open the address from the table in a private window. You should see XML with a list of sitemap links, not a theme page.
- Run the sitemap checker on it to test fetchability and a spread of the listed URLs.
- In Search Console, Sitemaps, add the same address. Setup of the account is in connect Search Console to WordPress.
- If Google says it could not fetch it, go to sitemap could not fetch.
Pages set to noindex are left out of Yoast's sitemaps, according to Yoast's help, so a missing URL often traces back to a noindex setting. Caching plugins can also serve a stale sitemap; AIOSEO publishes a separate guide on excluding it from caching.
Questions people ask
Do I need a plugin to have a sitemap?
No. Since WordPress 5.5 core serves a sitemap index at /wp-sitemap.xml. A plugin is only needed if you want its extra controls.
Why is there no sitemap on my site?
WordPress documents that if Site Visibility discourages search engines from indexing the site, core sitemaps are disabled by default. A plugin may also have switched sitemaps off.
Which URL do I submit to Google?
The one your site really serves, usually the index file. Test it first with the sitemap checker, then submit that address in the Sitemaps report.
Can I run two sitemaps at once?
Yoast warns to disable other sitemap plugins and remove physical sitemap files before turning its own on. Two sitemaps are not an error for Google, but two sources of truth drift apart, so keep one.
Related
Sources
- WordPress Make Core: New XML Sitemaps Functionality in WordPress 5.5 (July 22, 2020; modified Dec 15, 2022), accessed 2026-11-12.
- Yoast developer docs: XML sitemaps functional specification, accessed 2026-11-12.
- Yoast Help: XML sitemaps in Yoast SEO, accessed 2026-11-12.
- Rank Math Knowledge Base: XML sitemap, accessed 2026-11-12.
- AIOSEO: How to create an XML sitemap, accessed 2026-11-12.