Key points
- First check which sitemap the search engines are reading: Search Console, robots.txt, and the actual file must match.
- Only one active SEO plugin: two sitemap generators produce duplicates and inconsistent lists.
- A sitemap returning a 404 after an update can often be fixed by simply re-saving thepermalinks.
- Drafts, private pages, noindex pages, and canonical tags pointing to another page are excluded from the sitemap, which is completely normal.
- Old addresses from a redesign are fixed using 301 redirects, starting with the most visited ones.
Missing pages in the sitemap: first, find out which file is being read
Missing pages in the sitemap is one of the most frequent questions on the WordPress.org forums: about fifteen topics in six weeks, often after an update. The messages look alike. The sitemap stops working, published products are missing from it, or others appear twice.
Before looking for the glitch, you need to know which file the search engines are reading. A WordPress site can produce several at the same time: the one from WordPress itself at /wp-sitemap.xml, the one from an SEO plugin like Yoast or Rank Math, and the one from nexya’s SEO module if it is turned on. SEO plugins generally disable the WordPress sitemap, but not necessarily that of another extension.
Therefore, compare three things: the address declared in the Google Search Console, the “Sitemap:” line in your robots.txt file, and the file you open in an incognito window. If they do not point to the same sitemap, you may already have found the cause.

Cause 1: two plugins are each writing their own sitemap
This is the most common cause of duplicate URLs and mismatched lists. Each tool applies its own rules: one includes archive pages, another does not; one writes addresses with a trailing slash, the other without. The Search Console receives two versions of the site and reports inconsistencies.
The fix is to keep only one active SEO tool. nexya’s SEO module generates its own sitemap. If you switch to this module, disable the previous SEO plugin. If you keep your current plugin, leave the SEO module turned off in the hub: in nexya, a turned-off module does not record anything, and none of its hooks run on the site.
- Only one active SEO plugin at a time.
- Only one sitemap address declared in the Search Console; delete the old one.
- A single “Sitemap:” line in robots.txt pointing to the correct file.
Finding missing pages in the sitemap in 4 steps
-
1
Identify the sitemap read by search engines
Compare the address declared in Search Console, the "Sitemap:" line in robots.txt, and the file opened in a private browsing window. They must point to the same sitemap.
-
2
Keep only one generator
Keep only one SEO extension active. If you stick with your current extension, leave the nexya SEO module turned off in the hub.
-
3
Rebuild permalinks and clear cache
Re-save your permalinks in Settings, then Permalinks. Then clear the page cache and CDN cache, and reopen the sitemap.
-
4
Check absent pages and old addresses
Check the activity log to see who changed the status of a missing page. 301 redirect the old addresses flagged by the Redirections module, then resubmit the sitemap.
Cause 2: the sitemap returns a 404 after an update
A sitemap is not a static file stored on the server. WordPress generates it on demand using URL rewrite rules. When an update, a plugin change, or a migration disrupts these rules, the sitemap address returns a not-found page or a blank page.
The first step is simple: open Settings, then Permalinks, and click Save without changing anything. WordPress rebuilds its rewrite rules. In many cases, the sitemap comes back immediately.
If the issue appeared right after updating your SEO plugin and nothing else works, nexya’s Maintenance module keeps the two previous versions of each plugin and theme and can restore one of them. You get a working sitemap back while the developer fixes their version.
Cause 3: the page is not public in the WordPress sense
A sitemap only lists what is published and visible. A draft, a private page, a password-protected page, or a post scheduled for later will not appear in it, and that is normal. Most SEO tools also exclude pages marked as “noindex” and those whose canonical address points to another page.
When a page that used to be in the sitemap disappears from it, the question becomes: who modified it, and when? nexya’s activity log records who changed what, along with the before and after values. A status changed from “published” to “draft” or a setting modified by a colleague can be spotted there in seconds.
- Check the status and visibility of the page in the editor.
- Check that it is not set to noindex in your SEO tool.
- Check its canonical address: it must be its own.
Cause 4: a cache is serving an old version of the sitemap
A page cache, the host’s cache, or a CDN like Cloudflare can keep a copy of the sitemap for hours. You publish a page, the sitemap generated by WordPress contains it, but the visitor and the bot still receive the old copy.
To check this, add a parameter to the address, for example ?test=1: many caches will then let the request pass through to WordPress. If the missing page appears in this version, the cache is the issue. Clear it, then exclude the sitemap address from caching if your tool allows it.
nexya Pro’s page cache is cleared when content changes and can clear Cloudflare at the same time, which limits this delay.

Causes 5 and 6: duplicate products and changed addresses
On a WooCommerce store, duplicates often come from the same page being reachable via multiple addresses: with and without www, in http and https, with and without a trailing slash, or through the path of two different categories. The sitemap does not invent these duplicates; it reflects how the addresses are structured. Set a single site address in Settings, then General, and a single permalink structure for products.
The other case is renamed pages. After a redesign, a page changes address: the new one enters the sitemap, the old one leaves it, but Google still knows it and the Search Console reports 404 errors. nexya’s Redirections module tracks broken addresses requested by visitors, along with their hit counts, and redirects them with a 301 in one click. Start with the ones that have the most hits.
Once the sitemap is fixed, notify the search engines
The nexya SEO module notifies search engines using IndexNow when content changes. IndexNow is used by Bing and other engines. Google does not use it: for Google, resubmit the sitemap in Search Console and, for a specific page, request its indexing from the URL inspection tool.
Keep in mind that a sitemap is an invitation, not a guarantee. A page present in a clean sitemap may remain unindexed if Google considers it too similar to another or too thin. In that case, it is no longer a sitemap issue, but a content issue.
FAQ
Why doesn't a published page appear in my sitemap?
Check that it is actually public (neither private, password-protected, nor scheduled), that it is not set to noindex, and that its canonical address is its own. If everything is in order, a cache might be serving an old copy of the sitemap.
My sitemap is showing a 404 error since an update, what should I do?
Open Settings, then Permalinks, and click Save without changing anything to rebuild the rewrite rules. If the issue is due to an SEO plugin update, the nexya Maintenance module can restore one of the previous two versions.
Can I keep Rank Math or Yoast and activate the nexya SEO module?
It is best to keep only one SEO tool, otherwise two sitemaps will coexist. If you keep your current plugin, leave the SEO module turned off in the hub: a turned-off module does not record anything on the site.
Is IndexNow enough for Google to see my new pages?
No. Google does not participate in IndexNow. Submit your sitemap in Google Search Console and request indexing for important pages from the URL inspection tool.
The modules in this post
Try nexya Pro free for 7 days
Every module, forms, newsletters and the page cache, on your site. No commitment.