Managing Yoast SEO Sitemaps on Staging Sites
A staging site is a separate copy of a WordPress site where you review or test changes before publishing them on the…
When you audit a WordPress site, check both Yoast SEO’s sitemap settings and the XML the site serves. An XML sitemap is a set of files that helps search engines find URLs. Yoast’s sitemap index is a directory of those files; the child sitemaps list the URLs themselves.
Compare the XML with the pages the site intends to make public and allow search engines to index. The sitemap may intentionally leave out private WordPress content. It may also intentionally omit content marked noindex or pages that use a different canonical URL. A canonical URL is the address a site identifies as the preferred one for a page. Checking the settings and sampling the XML helps you tell an intentional exclusion from a sitemap problem.
In the WordPress Dashboard, go to Yoast SEO → Settings → Site features → Technical SEO → XML sitemaps. Turn on XML sitemaps if they are disabled, then select View the XML sitemap. This is the path in Yoast’s current instructions; menu labels can differ in an individual installation.
Next, review Content types and Categories & tags in Yoast SEO settings. Check Show [type] in search results? for each content type or taxonomy you expect to appear. Yoast includes types shown in search results in the sitemap, while turning that setting off removes them. Page-level noindex settings can also exclude individual URLs. Yoast’s sitemap customization instructions describe these controls.
The standard Yoast sitemap index is at https://example.com/sitemap_index.xml, using the site’s own domain. It should list the child sitemap files relevant to that site. The settings and available content determine which files appear. They can cover posts, pages, authors, categories, tags, or other taxonomies, which are ways to group content. The exact list varies, so a familiar set of filenames alone does not confirm that the output is correct.
The XML index has an entry for each child file. Each entry includes a loc URL, the file’s complete web address. A lastmod value can appear but is optional. Open a child sitemap to inspect its page URLs: the index points to those files rather than listing every page directly. Yoast’s XML sitemap specification describes this structure. It also says /sitemap.xml should redirect to /sitemap_index.xml; check the index URL directly when confirming Yoast’s output.
Compare the sitemap with the pages the site intends search engines to find:
loc values use the intended canonical address and site protocol.noindex, private or password-protected status, or a non-public archive explains the exclusion.Yoast’s specification says each child sitemap holds up to 1,000 items by default. A large content type can therefore appear across multiple child files. Yoast also supports custom additions to the index, so account for expected external sitemaps when comparing its entries.
First confirm that Yoast serves the XML you are checking. WordPress core or another plugin can generate a sitemap at a similar address, and a physical sitemap file on the server can interfere with Yoast’s dynamically generated output. If the XML is out of date, clear the relevant plugin, theme, and hosting caches, then check the address again. Yoast lists physical-file conflicts in its sitemap troubleshooting guidance and documents adding external sitemaps.
A noindex response header on the sitemap itself does not indicate that the XML is unusable. Yoast documents that header on sitemap responses; search engines can parse the sitemap without indexing it as a page.
Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.
Take a look at vroni.com