Remove URLs from other domains in the sitemap on Shopify
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
Not possible on Shopify. Shopify builds the sitemap from the store's primary domain and you cannot edit it. Set the correct primary domain under Settings, Domains, and the sitemap follows it.
Related
- Reported by the robots.txt and sitemap check
- Add a robots.txt file
- Fix the server error on robots.txt
- Fix the syntax of robots.txt
- Shrink the robots.txt file
- Allow search engines in robots.txt
- Publish an XML sitemap
- List the sitemap in robots.txt
- Make the sitemap reachable
- Fix the sitemap format
- Put URLs into the sitemap
- Split the sitemap into several files
Scan your domain to see whether this applies to you.