Skip to content

How-to guidePlatforms and CMS indexing

WordPress sitemap: find it, fix it and submit it

The WordPress sitemap lives at /wp-sitemap.xml on any public site running WordPress 5.5 or later, with no plugin needed. If you run Yoast SEO, Rank Math, All in One SEO or SEOPress, that plugin replaces it with its own sitemap at a different address. Submit the one your site actually serves, not the one a tutorial names.

The story · 3 steps
Check my sitemap URLsFree plan: 10 free links to try (once you verify your email), then 100 free checks a month, no card.
On this page · 8 sections
  1. 01Where does WordPress put your sitemap?
  2. 02What did real WordPress sitemaps return on October 17, 2026?
  3. 03Why does /wp-sitemap.xml return a 404 or a redirect?
  4. 04How does lastmod work in a WordPress sitemap?
  5. 05How do you submit a WordPress sitemap to Google Search Console?
  6. 06How do you submit a WordPress sitemap to Bing Webmaster Tools?
  7. 07Which WordPress sitemap errors should you expect?
  8. 08How do you check that your WordPress sitemap worked?

A sitemap is how Google and Bing find new and updated pages without waiting to stumble on links, and a page has to be indexed (in the search engine's index, the library it answers from) before it can show in search or in the AI answers built on it. This guide covers where each version lives, what real WordPress sitemaps returned when we checked on October 17, 2026, why /wp-sitemap.xml sometimes 404s, how lastmod works, and how to submit and check it.

Where does WordPress put your sitemap?

WordPress core puts its sitemap index at https://example.com/wp-sitemap.xml. The WordPress 5.5 announcement says "WordPress will expose a sitemap index at /wp-sitemap.xml" and that "a single sitemap can hold a (filterable) maximum of 2000 entries" (Make WordPress Core, July 22, 2020). The current core code still uses that default: the wp_sitemaps_max_urls filter returns 2000 (sitemaps.php source).

The same post says sitemaps cover "all public and publicly queryable post types and taxonomies, as well as for author archives and of course the homepage." The index links to one file per content type, numbered when a type passes 2,000 URLs:

File

What it lists

wp-sitemap-posts-post-1.xml

Posts, ordered by post ID (oldest first)

wp-sitemap-posts-page-1.xml

Pages, plus the home page when it shows your latest posts

wp-sitemap-taxonomies-category-1.xml

Category archives

wp-sitemap-taxonomies-post_tag-1.xml

Tag archives

wp-sitemap-users-1.xml

Author archives

Core builds these names as /wp-sitemap-<provider>-<subtype>-<page>.xml. Without pretty permalinks it falls back to query strings such as /?sitemap=index (WP_Sitemaps_Provider source). Core also adds a Sitemap: line to the virtual robots.txt on public sites, which our WordPress robots.txt guide covers.

SEO plugins replace the core file with their own. Where each one lives, as of October 2026:

Sitemap made by

Sitemap URL

Where to find it

WordPress core

/wp-sitemap.xml

No setting; on by default for public sites

Yoast SEO

/sitemap_index.xml

Yoast SEO → Settings → Site features → XML sitemaps → View the XML sitemap

Rank Math

/sitemap_index.xml

Rank Math SEO → Sitemap Settings

All in One SEO

/sitemap.xml

All in One SEO → Sitemaps → General Sitemap → Open Sitemap

SEOPress

/sitemaps.xml

SEO → XML – HTML Sitemap

Jetpack

/sitemap.xml

Jetpack's Sitemaps setting

Rank Math's guide says its index "is available at https://yourdomainname/sitemap_index.xml". The Yoast and All in One SEO URLs are what those plugins served on their makers' own sites when we checked (next section).

What did real WordPress sitemaps return on October 17, 2026?

We requested /wp-sitemap.xml on six public WordPress sites on October 17, 2026, using this command:

Shell
for u in \
  https://make.wordpress.org/core/wp-sitemap.xml \
  https://wordpress.org/news/wp-sitemap.xml \
  https://yoast.com/wp-sitemap.xml \
  https://rankmath.com/wp-sitemap.xml \
  https://aioseo.com/wp-sitemap.xml \
  https://www.seopress.org/wp-sitemap.xml; do
  curl -s -o /dev/null -w "%{http_code} %{redirect_url} <- $u\n" "$u"
done

What came back, plus what we found when we followed each result:

Site

/wp-sitemap.xml returned

What we found

make.wordpress.org/core

200, a core sitemap index

16 sub-sitemaps. posts-post-1 held exactly 2,000 URLs, each with lastmod; posts-post-4 held 659. The category (17 URLs) and author (321 URLs) files had no lastmod

wordpress.org/news

404

/sitemap.xml returned 200 with a generator='jetpack-16.3' comment: Jetpack serves this site's sitemap

yoast.com

301 to /sitemap_index.xml

Sitemap index served with X-Robots-Tag: noindex, follow

rankmath.com

301 to /sitemap_index.xml

Sitemap index served with X-Robots-Tag: noindex

aioseo.com

302 to /sitemap.xml

Sitemap index served with X-Robots-Tag: noindex, follow

seopress.org

301 to /sitemaps.xml

Sitemap index served with X-Robots-Tag: noindex, follow

Two cautions. These are the vendors' own sites, which may not use default settings. And the noindex header applies to the sitemap file itself, keeping the XML out of search results; it doesn't stop search engines reading the URLs listed inside.

Why does /wp-sitemap.xml return a 404 or a redirect?

A 404 or redirect at /wp-sitemap.xml almost always means something else is now responsible for your sitemap, or the site is set to stay out of search. The usual causes:

  • An SEO plugin took over. SEOPress documents it directly: "we automatically redirect other common xml sitemaps URLs," listing /wp-sitemap.xml among them (SEOPress). The other three makers' sites redirected the same way when we checked.
  • Jetpack's sitemap is on. Jetpack serves /sitemap.xml, and says "We won't activate our Sitemap feature if we detect you're already using one of the more popular sitemap plugins on your site" (Jetpack). wordpress.org/news is a live example: Jetpack sitemap, core URL 404.
  • The site discourages search engines. The 5.5 post says that when you "discourage search engines from indexing your site, sitemaps will be disabled." Core keeps the rewrite rules so that "a 404 is returned" (WP_Sitemaps source).
  • Code switched it off. A theme or plugin can run add_filter( 'wp_sitemaps_enabled', '__return_false' );, the snippet the 5.5 post gives for disabling sitemaps.
  • You switched SEO plugins. If you deactivate an SEO plugin, its sitemap URL stops working, and Search Console keeps trying the old address you submitted. Our page on what "Sitemap could not be read" means covers that error.

Whatever the cause, submit the URL that returns 200 without a redirect.

How does lastmod work in a WordPress sitemap?

WordPress adds lastmod (the date a page last changed) to every post, page and custom post type entry, plus the home page when it lists your latest posts. The change landed in October 2023 with a commit that says "No lastmod is added for the individual sitemap pages in the sitemap index, nor for term archives or user archives" (core commit 0ad0726). It isn't in the 6.4 branch's posts provider and is in the 6.5 branch, so it shipped in WordPress 6.5.

The value comes from the post's post_modified_gmt field. Core's wp_insert_post() sets that field to the current time on every update (post.php source), so a typo fix or a bulk re-save moves lastmod as much as a rewrite does.

Both search engines ask for an honest date:

  • Google "uses the <lastmod> value if it's consistently and verifiably (for example by comparing to the last modification of the page) accurate," and says an update to the copyright date isn't significant (Google Search Central).
  • Bing's July 2025 guidance says the value "should reflect the true last modification time of the page content, not the sitemap file itself" (Bing Webmaster Blog).

So don't bulk-update old posts just to refresh their dates. Change the content when it needs changing; our guide to content freshness and AI answers explains why the real update is what counts.

How do you submit a WordPress sitemap to Google Search Console?

You submit a WordPress sitemap in Search Console's Sitemaps report, which needs owner permission on the property. If you haven't added the site yet, start with connecting WordPress to Search Console.

  1. Find the working URL. Open /wp-sitemap.xml or your plugin's sitemap in a private window and note the final address after any redirect.
  2. Test it as Google. Google says you can test the sitemap by "running a live URL inspection and checking that Page fetch is 'Successful'" (Sitemaps report help). Our URL Inspection tool guide shows where that is.
  3. Submit it. Paste the URL "into the Add a new sitemap box in the Sitemaps report, then click Submit." Submit the index, not each child file.
  4. Read the status. "Success" means it was read without errors; "Couldn't fetch" means Google couldn't get it.

Google adds that without owner permission "you can list the sitemap in your robots.txt file instead," which core WordPress already does. The report shows only sitemaps submitted through it or the API, though, so submit it there to see its status.

How do you submit a WordPress sitemap to Bing Webmaster Tools?

Bing takes the same sitemap URL. If you add your site by importing it from Search Console, Bing says "any new sitemap found on your Search Console account will also be imported automatically" (Bing Webmaster Tools help). Otherwise, add it in the Sitemaps tool; our Bing Webmaster Tools guide walks through setup.

Bing says it will "attempt to fetch it immediately upon submission" and then revisit it "typically at least once per day" (Bing Webmaster Blog). For changes Bing should hear about between those visits, add IndexNow on WordPress (an open "this page changed" notice that Bing and other participating engines accept; Google doesn't use it).

Which WordPress sitemap errors should you expect?

Most WordPress sitemap errors come from an old URL, a cache or a setting. As of October 2026:

What you see

Likely cause

Fix

/wp-sitemap.xml returns 404

An SEO plugin or Jetpack replaced it, or the site discourages search engines

Submit the plugin's URL; check Settings → Reading

/wp-sitemap.xml redirects

An SEO plugin owns the sitemap

Submit the redirect target

Search Console shows "Couldn't fetch" after a plugin change

The submitted URL no longer exists

Remove the old sitemap; submit the new one

New posts missing from the plugin sitemap

Page or server caching

Rank Math notes "It is possible that your sitemap is cached"; exclude sitemap URLs from caching

Sitemap URL is /?sitemap=index

Plain permalinks

Fine to submit as is, or switch on pretty permalinks

Posts spread over several files

More than 2,000 posts of one type

Normal; submit the index only

Once your sitemap reads "Success", check which of its URLs Google has indexed instead of waiting to find out.

How do you check that your WordPress sitemap worked?

A "Success" status means Google read the file; it doesn't mean the URLs are indexed. Google says crawling "can take anywhere from a few days to a few weeks" (Google Search Central), and indexing is still its call.

To see the URLs themselves, open the Page indexing report and set its sitemap filter to "All submitted pages," which Google defines as URLs "listed in a sitemap or sitemap index that was submitted using either the Sitemaps report or a robots.txt file" (Page indexing report help). Submitted pages marked crawled, currently not indexed were read and set aside; the fix there is the page, not the sitemap.

To check every sitemap URL against Google in one go, FreshlyCited's recipe for pushing unindexed sitemap URLs runs the list through a visibility check. Smart push then sends only the "Invisible" URLs to Google, re-checks them on days 1, 3 and 7, and returns the index credit for any link still not indexed after day 7 (exclusions apply, such as pages that return an error or carry noindex). Google still decides what it indexes.

Sitemap submitted? Check your WordPress pages free: 10 free links to try, then 100 free checks a month, no card needed.

Rakesh Patel

Written by

Founder & CEO, Space-O Technologies · Founder, TextBolt

Rakesh Patel founded Space-O Technologies in 2010 and leads it as CEO, with 25 years of leadership experience; he has overseen the delivery of more than 3,000 mobile app projects. He is also the founder of TextBolt, a business email-to-SMS service, and the author of "Enterprise Mobility Strategy and Solutions" and "A Guide to Open311". Space-O built FreshlyCited to solve the "shipped but not seen" problem on its own and its clients' sites: pages and links that are live but that Google hasn't looked at yet.

Founded Space-O Technologies in 2010 · 25 years of leadership experience · author of 'Enterprise Mobility Strategy and Solutions' and 'A Guide to Open311'

Written for FreshlyCited, which helps Google and Bing find new and updated pages sooner. About FreshlyCited

FAQ

Questions people ask

Do I need a sitemap plugin for WordPress?

No. WordPress 5.5 and later generate /wp-sitemap.xml without a plugin. A plugin is only worth it if you want its extra controls, and installing one usually replaces the core sitemap with its own URL.

Should I submit every child sitemap to Search Console?

No. Submit the sitemap index once. Google reads the child sitemaps listed inside it and reports them under the index.

Why does my sitemap show fewer URLs than my site has?

Noindexed posts, private content and post types or taxonomies excluded by your SEO plugin don't appear. Each core file also holds at most 2,000 URLs, so bigger post types continue in numbered files.

Check my pages free.

See which of your pages Google has indexed, free.