Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Sitemap index referencing dead child sitemaps: how to fix it

SEO-112Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A sitemap index is an XML file (often /sitemap_index.xml or /sitemap.xml) that points to several child sitemaps, such as one for posts, one for products and one for categories. Each child holds the actual page URLs.

The issue appears when an entry in the index points to a child sitemap that no longer works. It may return a 404 (not found), a 5xx (server error), a redirect, or HTML instead of XML. Common causes are a plugin setting that was switched off, a deleted post type, a site migration, or a hard-coded index that nobody updated.

Why it costs you leads or sales

Search engines use sitemaps to discover and recrawl pages. If a child sitemap is dead, every page listed only there loses that discovery route. If the dead child was your products or services sitemap, new and updated money pages may be found later, or not at all, until crawlers reach them through links.

Search Console may also report the whole index as having errors, which hides real problems in the working children. The impact is usually medium: pages with strong internal links still get crawled, but slow discovery hurts new landing pages and fresh product pages.

How a dead child sitemap hides pages
  1. Crawler reads indexsitemap_index.xml loads fine
  2. Fetches child sitemapproduct-sitemap.xml returns 404
  3. Product URLs unseenNo discovery through the sitemap
  4. Slower indexingNew pages wait for link-based crawling

The crawler reads the index, then fails on one child and never sees the URLs inside it.

Pages discoverable via sitemapExample numbers
Pages discoverable via sitemap (example)Posts sitemap: 300 URLs; Pages sitemap: 40 URLs; Products sitemap (dead): 0 URLs0115230300400Posts sitemapPages sitemapProducts sitemap (dea…URLs

Example: a site with three child sitemaps where the product sitemap is dead. Numbers are illustrative.

How to check if your site has it

Test every child sitemap
  1. Open the index

    Visit https://yourdomain.com/sitemap_index.xml or /sitemap.xml in a browser. Look for a list of <sitemap><loc> entries.

  2. Open each child URL

    Click or paste every <loc> value. A working one shows XML with <urlset> and <url> entries.

  3. Check the status code

    Use browser developer tools (Network tab) or the command below. You want 200 and an XML content type, not 301, 404 or 500.

  4. Read Search Console

    In Google Search Console open Sitemaps. Look for the status 'Couldn't fetch' or 'Has errors' on the index and on its children.

Check the status of every child sitemapbash
curl -s https://example.com/sitemap_index.xml \
  | grep -oE '<loc>[^<]+</loc>' \
  | sed -E 's#</?loc>##g' \
  | while read url; do
      code=$(curl -s -o /dev/null -w '%{http_code}' "$url")
      echo "$code $url"
    done

How to fix it

Decide for each dead entry whether the child sitemap should exist. If it should, restore it. If it should not, remove it from the index. Never leave an entry that returns an error.

Fix by platform
  1. Check your SEO plugin

    In Yoast SEO go to Settings > Site features > XML sitemaps. In Rank Math go to Sitemap Settings. Make sure the content type behind the dead child (for example products) is included and not set to noindex.

  2. Refresh permalinks

    Go to Settings > Permalinks and click Save Changes. This rewrites rules that often cause sitemap 404s.

  3. Clear caches

    Purge your caching plugin and CDN so the regenerated index is served.

A valid sitemap indexhtml
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.com/post-sitemap.xml</loc>
    <lastmod>2025-01-15</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://example.com/page-sitemap.xml</loc>
    <lastmod>2025-01-10</lastmod>
  </sitemap>
</sitemapindex>

How to confirm it's fixed

Fix verification
  • Every <loc> in the index returns 200 and valid XML
  • No child URL redirects or returns HTML
  • The index and each child pass the Sitemaps report in Search Console
  • Child sitemaps list the URLs you expect, including key landing and product pages
  • The sitemap is still referenced in robots.txt with the correct URL

After fixing, resubmit the index in Google Search Console under Sitemaps, and in Bing Webmaster Tools if you use it. Status can take from hours to a few days to update.

How to prevent it happening again

Prevention habits
  • Re-run the child URL check after plugin changes, migrations and theme or hosting moves
  • Do not hand-edit an index that a plugin generates
  • Remove a child from the index when you delete the content type behind it
  • Review the Sitemaps report in Search Console monthly
  • Add the check to your launch checklist for any redesign
How it usually unfolds
  1. Day 0

    A plugin is changed or a post type is removed. The child sitemap disappears.

  2. Days 1-7

    The index still lists the dead child. Crawlers get errors on it.

  3. Weeks later

    Someone notices a Search Console warning or slow indexing.

  4. After the fix

    Index is cleaned, resubmitted and all children read successfully.

How FunnelGuard handles this

FunnelGuard does not check sitemap indexes or child sitemaps today. It is a possible future check, not a current feature.

What FunnelGuard does do is run your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons, and check the steps, the tracking hits and whether test leads arrive. That covers the conversion side of your funnel, not search discovery.

To watch for this issue now, check the Sitemaps report in Google Search Console and Bing Webmaster Tools, run the curl loop above on a schedule (for example a weekly cron job), or use any uptime monitor that can request a URL and alert on non-200 responses, one per child sitemap. A free read-only FunnelGuard website audit is also available if you want a wider look at your site.

Questions people ask

What is a sitemap index?

A sitemap index is an XML file that lists the URLs of other sitemap files. It lets large sites split their URLs across several child sitemaps, each limited to 50,000 URLs or 50 MB uncompressed. Search engines read the index first and then fetch each child.

Why does Search Console say it couldn't fetch my child sitemap?

Usually the child URL returns a 404, a 5xx error, a redirect or non-XML content. Open the URL in a browser and check its status. Then restore the file, fix the server rule blocking it, or remove the entry from the index.

How do I find which child sitemap in my index is broken?

Open the index, then request each <loc> URL and note the status code. A short curl loop does this in seconds. Search Console's Sitemaps report also shows the status of each child once you open the index.

Will a dead child sitemap hurt my rankings?

It does not penalise your site directly. It does remove a discovery route for the pages inside that child, so new or updated pages may be crawled and indexed later. The effect is largest on big sites and on new pages with few internal links.

Should a child sitemap in the index redirect?

No. List the final URL so crawlers get a 200 response straight away. Redirects waste crawl effort and some tools report them as errors.

Why is my Yoast or Rank Math sitemap index returning 404?

Common causes are sitemaps switched off in the plugin, outdated permalink rules, a conflicting second sitemap plugin, or a cache serving an old response. Re-save Settings > Permalinks, confirm only one plugin generates sitemaps, and clear all caches.

How do I fix a sitemap index after a site migration?

Check that the index and every child use the new domain and https. Confirm each child returns 200 on the new server. Then update robots.txt and resubmit the index in Search Console.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.