Sitemap lists URLs on a different domain
This error appears when your sitemap lists URLs that are on a different domain or subdomain from the file itself. Here's what it means and how to make sure the sitemap only includes your site's URLs.
What this error means
Why fixing URLs from another domain in the sitemap matters
Impact on SEO rankings
If the whole sitemap uses another domain, for example the staging site's, it has no effect on any of your pages. If Google takes longer to discover a page, it also takes longer to rank it and bring you visits.
Crawling and indexing obstacles
Without the sitemap, Google can only find the discarded pages by following internal links. Pages that get few links from the rest of your website can go a long time without being crawled or indexed.
Negative signals for site quality
If the sitemap uses one domain and the redirects or canonical tags use another, Google gets contradictory signals about your main address and may end up showing the one you don't want in search results.
How to fix it step by step
If this error showed up in your audit, here are the steps to leave it behind.
Identify which URLs point to another domain
In the "Cross-domain URLs" column, Ruk Audit shows you the sitemap URLs that are on a different domain or subdomain from the file. Compare them with the sitemap's address and check whether the whole domain changes or just the subdomain.
Fix the website address in your CMS
Check that the address your CMS uses matches your main address. In WordPress it's under Settings > General, in the WordPress Address (URL) and Site Address (URL) fields. SEO plugins like Yoast or Rank Math generate the sitemap automatically, so fixing the address is enough. If your sitemap is a static file, generate it again with the tool that created it.
Move each URL to its own sitemap and unify the redirects
If there are still URLs from one of your subdomains that you do want indexed, include them in that subdomain's own sitemap. Then type your website into the browser with and without www, and with http and https. All four versions should take you to the same main address.
Submit the corrected sitemap to Google Search Console
Once the changes are in place, clear your website's cache if you use one, so the new sitemap is served. Then submit it from Google Search Console so Google processes it again with the correct URLs.
Does your site have this problem?
Audit your website for free and discover if this and other SEO errors are affecting your ranking.