Currently Available: Need a skilled Software Developer for your next project?
Categories
WordPress

Standardizing Yoast SEO Sitemap Settings Across Multiple Sites

When you manage several WordPress sites, you can use shared Yoast SEO settings as a starting point without forcing every site to produce the same sitemap. Search engines read XML sitemaps as machine-readable lists to discover URLs. Yoast groups individual sitemaps for posts, pages, and taxonomies under a single sitemap index.

Start by choosing shared settings for sites with similar content, and record each site’s approved differences. Then compare each live sitemap index and its child sitemaps against that site’s record. That check lets you spot missing or unexpected entries while still allowing for legitimate differences in content, archives, and indexing rules.

Set a baseline, then record exceptions

Start by grouping sites that share similar content and search-visibility rules. A group of marketing sites might only need public posts and pages, while a publication or online store may need extra content types or taxonomies. Set the baseline rules for each group, and expect individual sites within a group to differ where their content does.

Yoast ties search visibility directly to sitemap inclusion. When you configure a content type so search engines do not show it in search results, Yoast removes it from the sitemap as well. Review your settings for content types, categories, tags, custom taxonomies, and archives, including author archives if your sites use them. Yoast outlines these controls in its guide to customizing the sitemap index.

Settings on individual posts and pages can also change what Yoast outputs. Yoast may omit a post or page if you mark it noindex, set a manual canonical URL (which tells search engines which URL represents a page when duplicates or alternates exist), or redirect it with Yoast SEO Premium. If an expected URL is missing from a sitemap, check the individual item’s settings before you change site-wide rules. You can also review this overview of global and individual Yoast sitemap settings to see how those two levels interact.

Write down every exception as an explicit decision, such as excluding author archives on one site or adding a custom post type on another. List the exact sitemap types you expect for each site, including approved additions and omissions. That way, maintainers can check the live index against the list without flagging intentional differences as errors.

Apply the shared settings carefully

Yoast includes an export and import tool under Yoast SEO → Tools → Import and Export. Import an approved baseline export to apply your shared options, then review those options on each site and apply its documented exceptions. Yoast’s import and export instructions cover how the tool works, though you still need to verify that each imported option fits the site’s content and search-visibility rules.

Before you reuse an export across sites, strip out values tied to the source site, such as site identity or verification codes. Because Yoast’s detailed advice on sanitizing reusable exports comes from an older import and export article, inspect the current export file and settings screen yourself instead of assuming every field matches the older format. Store the approved export under access control, test it on a staging environment or representative site first, and log the WordPress and Yoast versions you used.

You can turn XML sitemaps on or off under Yoast SEO → Settings → Site features → Technical SEO. Once you enable the feature, Yoast generates the index at /sitemap_index.xml along with its child sitemaps. Yoast’s XML sitemap documentation covers this setting and how the feature behaves.

Do not assume Yoast is serving a sitemap URL without checking. WordPress core, another plugin, or a static sitemap file on the server can also respond at sitemap paths. When you enable Yoast’s sitemap feature, Yoast disables WordPress core’s default sitemap. When you disable Yoast’s feature, however, WordPress core’s default sitemap can remain active. Record which generator serves each sitemap URL, and check whether a plugin, theme, host, or server cache modifies the response.

Record each site’s intended output

Keep one central register with an entry for each site. Record enough detail to explain every entry in the live index and to repeat your checks after an update or migration.

Record What to capture
Site identity Site name, production hostname, WordPress site URL, environment, and maintainer
Software WordPress and Yoast SEO versions, relevant Yoast add-ons, and the date last checked
Sitemap source Whether Yoast sitemaps are enabled, the expected index URL, and any other active sitemap generators
Hostname format Expected protocol and hostname, including whether the site uses www or non-www
Content and archives Each relevant post type, taxonomy, and archive, along with its intended search visibility and sitemap inclusion
Individual exceptions Notable noindex settings, manual canonicals, redirects, or other exclusions that explain missing URLs
Custom output News, Video, or Local SEO integrations, external sitemap additions, and active sitemap filters
Sitemap size setting Any custom value for wpseo_sitemap_entries_per_page; Yoast’s documented default is 1,000 entries per sitemap
Expected index Exact sitemap types you expect to see, plus approved additions and omissions
Verification Index and child-sitemap results, representative URL checks, Search Console status, and any unresolved differences

In the register, mark each rule as either shared or site-specific. You might note that every site includes public pages, while one site also includes a custom post type. If custom code filters modify the sitemap, record where that code runs and which entries it adds or removes. Yoast documents these customization filters and the wpseo_sitemap_entries_per_page setting in its sitemap customization guidance.

Compare the live index with the register

Open the expected index for each production site, usually /sitemap_index.xml, and confirm that it returns readable XML for the right hostname. Do not assume /sitemap.xml belongs to Yoast, since WordPress core or another generator may serve that path. Yoast’s functional specification outlines the index path and its structure.

Check every sitemap URL listed in the index against the site’s register. Each entry should use the expected protocol and hostname and match an expected sitemap type or an approved addition. Flag any missing entry and any entry that should not appear. The index may include a lastmod timestamp showing the latest modification in a sitemap, though a missing lastmod value on its own does not indicate an error.

Next, open each child sitemap in the index and confirm that it returns readable XML from the right site and lists the expected type of URL. Spot-check representative URLs against the site’s rules to make sure each one is the intended canonical URL and does not carry an unexpected noindex directive. When an expected URL is missing, inspect that item’s individual Yoast settings and any custom code before you change site-wide rules. In its XML sitemap troubleshooting guidance, Yoast notes that noindex, a manual canonical URL, or a redirect in Yoast SEO Premium can all keep a URL out of a sitemap.

A missing child sitemap does not automatically mean something is broken. If a content type or archive has no eligible URLs, Yoast may not list a sitemap for it, and Yoast documents empty sitemap behavior in certain cases. Compare the sitemap against the site’s actual content and recorded settings before you treat the gap as a fault. Keep in mind that leaving a URL out of a sitemap does not stop search engines from discovering or indexing it through other links. Google explains this distinction in its sitemap overview.

You can also use Google Search Console as a second check. Its Sitemaps report shows whether Google fetched and processed a submitted sitemap and whether Google ran into any processing errors. Even so, a successful fetch does not prove the index lists the right sitemap types, and submitting a sitemap does not guarantee crawling or indexing. Treat Search Console as a supplement, and still compare the live index against your register.

Investigate stale or unexpected output

When the live XML does not match your settings, check caching before you assume Yoast failed to save a change. A WordPress caching plugin or a server-level cache can keep serving an older sitemap after you update the configuration. Yoast recommends checking your caches first in its sitemap update troubleshooting guidance.

Verify which system served the response as well. A static file on the server, another plugin, or WordPress core can answer at a sitemap URL that you expected Yoast to handle. If the response is valid XML without browser styling, that plain appearance is not a failure on its own, since Yoast notes that search engines can read unstyled XML. Check the XML contents themselves and, if you submitted the sitemap, review Google’s processing status in Search Console.

What I'm building

Delegate tasks. Get software.

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

Email updates

Usually a new article and a few links I found interesting.

No spam. Unsubscribe with one click.

Leave a Reply

Your email address will not be published. Required fields are marked *