Let's say I have a website www.example.com. Is it okay to host the sitemap.xml outside www.example.com such as https://example.cloudstorage.com/static/sitemap.xml? All the entries in the sitemap will have absolute URLs such as https://www.example.com/path/to/page.

The reason is that I will have an automated process to update my website's sitemap.xml but the process cannot cannot access files within www.example.com directly.

Will a search engine like Google or Bing allow for sitemap.xml to be hosted outside the website being indexed?

If yes, is there a SEO penalty for doing this?

  • Sitemaps have almost nothing to do with SEO. They can the search engine crawlers to come crawl pages on your site, but have little influence on decisions about which pages get indexed or how well those pages get ranked. See The Sitemap Paradox. – Stephen Ostermiller Jul 12 '20 at 11:52
  • @StephenOstermiller Thanks for referring me to that post. So it looks like search engine uses sitemap for supplementary information. My website's sitemap is autogenerated, I just want to know whether hosting it outside the domain is acceptable. – Anonymous Jul 12 '20 at 18:12

You can't do that. Google and Bing not allows your submit the external XML sitemap(not the same domain), you XML sitemap file should be access on the same domain .

you have many solutions to solve if you host sitemap on the outside of site.

  1. Add reverse-proxy on Nginx to access outside sitemap file.
 example.com/sitemap > abc.com/sitemap.xml
  1. Uses third-party tools that supports custom domain for your sitemap. like https://sitemaphub.com

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.