Skip to content

XML Sitemap Index: Verify That Each Child File Can Be Read

Check the status, XML and directory of each child sitemap. See what happened when we repaired a missing file and moved a local index.

A blank index card above two folders, one with a white sheet and one with an orange tab
Jack Lee
3 Min Read
Share
On This Page

Your sitemap index loads, but products are missing from the sitemap report. Open the child files one by one. An index response proves the list was served. Each child still has its own URL, status and XML.

Read the index before testing the children

Open the exact submitted URL and view the original XML. A <sitemapindex> lists sitemap files in <sitemap> entries. A <urlset> lists page URLs. Start with the <loc> values directly inside the index entries. If you are building a sitemap for the first time, start with our XML sitemap guide.

Test each child response and its directory

Request each listed address with GET. Record the status, any redirects, final URL and XML root. A 200 that returns an HTML fallback is a failed sitemap check. Decode compressed files before checking XML. With a same-site setup, Google requires child sitemap files to be in the same directory as the index or below it. Google documents a separate verified cross-site submission workflow.

SEOWithJack reproduced three outcomes with a local store fixture. The parent at /maps/index.xml returned 200 throughout the first run.

Child fileGET resultDirectory checkFix
/maps/guides.xml200, valid URL setWithin scopeKeep the entry.
/maps/missing.xml404Within scopeRestore the file if it belongs in the index. Otherwise remove the stale entry.
/products.xml200, valid URL setAbove the index directoryMove the index to the root or regenerate the child under the index directory and update its entry.

In the fixture we restored the missing file, served the index at /sitemap-index.xml and ran the same three requests. All children returned 200 with a URL set and met the directory check. This tested file delivery and structure on a local server.

Fix the generator and verify the public response

  1. Correct the source that generates the index. For a WordPress plugin, confirm which generator owns the URL and whether the child route still exists. For a static site, check the build outputs and files actually uploaded.
  2. Request the published index and the exact child addresses again in a signed-out session. Compare the new paths, response bodies and status codes with the earlier results. Check that the child URLs actually list the intended pages.
  3. Submit the current index in the matching Search Console property if its address changed. Check the sitemap report after Google rereads it. If a publicly readable file still shows an error, continue with the Search Console sitemap fetch checks.

Frequently asked questions

Its job is to tell crawlers where sitemap files are. Use the sitemap report to check whether Google processed it and URL Inspection to check an individual content page.

Can an index in a folder list a sitemap in the root?

In a regular same-site setup, the child file must sit beside the index or deeper. A root-level index is one option when files are spread across several directories.

Does a readable sitemap mean all its pages are indexed?

No. A sitemap helps Google discover page URLs. For a missing page, check its indexing status and canonical separately.

Share This Article