webzod
account

Remove URLs from other domains in the sitemap on WordPress

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. Open Settings, General and check WordPress Address and Site Address both use https://example.com. An old or staging address there leaks into every sitemap entry.
  2. Check your SEO plugin for a separate site URL setting, then clear caches and regenerate the sitemap.

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.