Guides › WordPress › Site down or error screens

Yoast SEO or Rank Math Sitemap Shows 404 or Is Empty

If sitemap_index.xml gives a 404 or no URLs, the cause is usually permalinks, a rewrite conflict or a setting that excludes content.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Site down or error page

What you see

Opening /sitemap_index.xml (Yoast) or /sitemap_index.xml (Rank Math) shows a 404 page, a blank page, or a sitemap with no posts.

Check in this order

  1. Sitemaps are switched on in the SEO plugin's settings. Both plugins let you turn the feature off.
  2. Save permalinks again (Settings, Permalinks, Save) to rebuild rewrite rules.
  3. Another sitemap is competing. WordPress has its own wp-sitemap.xml, and a second SEO or sitemap plugin may clash. Keep one.
  4. Content types are excluded. A post type or taxonomy may be set to hidden from search, which removes it from the sitemap.
  5. A caching or security plugin is blocking XML. Exclude the sitemap URLs from cache.
  6. A real file named sitemap.xml left in the site folder by an old tool can hide the dynamic one. Look in the root folder.

Then submit the working URL in Search Console. See indexing problems and Crawled - not indexed.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-21.