webzod
account

Remove URLs from other domains in the sitemap

hygiene.sitemap.offsite_urls · effort: about an hour

Why it matters

A sitemap should list only URLs on its own site, and entries on another domain are ignored by search engines. This usually means a staging or old domain is still set as the site address.

The fix

  1. Find which domain the offsite URLs use, and where the generator takes its base URL from (a setting, an environment variable, a config file).
  2. Set the base URL to https://example.com and regenerate the sitemap. Sitemaps on one host may list another domain only if you control both and have verified them in Search Console, which is rarely what you want.

The examples use example.com. Replace it with your own domain.

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.