Google says sitemap index files can't list other index files
Summary
Google's sitemap documentation now says a sitemap index file cannot list another sitemap index file, which rules out the nested setup some large sites submit today.
Open the index file you send to Search Console and flatten it so every entry points at a sitemap of URLs.
Google added a line to its large sitemaps documentation on November 27 saying that a sitemap index file can only list individual sitemaps, and that “nested sitemap index files (a sitemap index file that references another sitemap index file) aren’t supported.” Google’s documentation changelog describes the edit as porting guidance from blog posts the company published in 2005 into the current docs. Barry Schwartz, who runs Search Engine Roundtable, spotted the edits the same day.
The wording is new, and the structure it rules out is the one a generated sitemap setup drifts into. A build that emits one index per content type and then wraps those indexes in a single master file now has a documented problem, because the master file lists index files rather than sitemaps. Google’s docs do not say what happens when its crawlers meet such a file, so the safer assumption is that the URLs sitting two levels down never arrive as sitemap URLs at all.
The documented way past a single file’s limits is width rather than depth. Three ceilings set the shape:
| Container | Documented limit |
|---|---|
| One sitemap | 50MB uncompressed, or 50,000 URLs |
| One sitemap index file | up to 50,000 sitemaps |
| Search Console, per site | up to 500 sitemap index files |
Compression does not buy room. Gzip is supported for the files themselves, and the 50MB ceiling applies to the uncompressed file, so a 60MB sitemap has to be split whether or not it is served as .xml.gz. The index also has to sit in the right place: the sitemaps it references must be in the same directory as the index file or lower in the site hierarchy.
The second change takes away a habit. Google’s sitemaps overview now states that “omitting or removing a URL from your sitemap doesn’t prevent Google from crawling or indexing it if Google discovers the URL through links from other web pages,” and that to keep a page out of Google Search you “block indexing with noindex.”
Pulling a URL out of the sitemap only withdraws a suggestion about what to crawl. Anything Google reached through an internal or external link stays eligible, and the controls that decide otherwise live on the URL: a noindex for a page that still exists, or the 404 or 410 that Google’s crawl budget guide asks for on permanently removed pages. Google acts on the status code it receives, which is also how a 200 served during downtime can turn live pages into duplicates.
One smaller clarification landed in the build a sitemap page: an HTML sitemap, meaning a normal page that links to your important pages, helps visitors and crawlers navigate, but it is not a format Search Console accepts as a sitemap submission. A site that relies on one alone has nothing submitted.
What to do
- Open the index file you submit in Search Console and read every
<loc>. If one points at another index file, list the leaf sitemaps directly instead, or submit several index files. - Keep each sitemap under 50,000 URLs and 50MB, measured before gzip.
- Host the index at or above the directory holding the sitemaps it lists.
- For a page that should leave Search, serve
noindexif it still exists or a 404 or 410 if it is gone, and keep the URL crawlable either way. Removing it from the sitemap on its own does not keep it out. - Keep the HTML sitemap page for visitors, and submit an XML sitemap for Google.