I am using a "cloud" hosting provider (Heroku) to host my webapp. Since I don't have access to a permanent file system, I am storing my sitemap.xml in Amazon S3.

I wanted to know the SEO implications of the following 2 options for submitting the sitemap to search engines (Google & Bing) via their webmaster tools:

1) Create on endpoint on my domain: http://mydomain.com/sitemap.xml that performs a 301 redirect to the S3 hosted sitemap. Provide the url hosted on my domain to the search engines. This is the option I am currently using. It seems to work fine with Google, but I noticed a "sitemap error" with Bing - I am monitoring this as I am not yet sure what the cause is.

2) Apparently, there is a way to do "cross domain" sitemap submission whereby I get the S3 URL approved by the search engine, then I can directly submit the S3 url as my sitemap.

Also I am currently pointing the sitemap entry in robots.txt to the sitemap url hosted on my domain (not to S3).

Is one of these methods preferred from an SEO perspective? Like I said, I am using option (1) but I want to be somewhat confident that the crawlers will be OK with the HTTP 301 that I'm using.

  • Just for the record, sitemaps have nothing to do with SEO. They only help search engines find your content. So whatever works - works.
    – closetnoc
    Oct 8, 2014 at 22:39
  • 2
    So sitemaps which optimize how search engines find your content have nothing to do with search engine optimization?
    – Jon
    Oct 10, 2014 at 20:12
  • Not at all. It just helps the search engine find your stuff. For example, I have about 600,000 pages and it is impossible to link them within the site. I do have links between the pages, just not from the site itself. I use a sitemap to tell Google about these pages that they may never find. Having a sitemap does not help in the traditional SEO sense. There are no metrics/factors within Google's famous 200+ that have anything to do with a sitemap. In fact, Google prefers not using one when the site is smaller and they can discover all of the pages through a traditional crawl.
    – closetnoc
    Oct 10, 2014 at 22:16

1 Answer 1


Google seems to be much more forgiving of cross-domain sitemaps than Bing. Bing does support cross-domain sitemaps, but with a bunch of caveats.

According to that document, to get your cross domain sitemap to work with Bing, you should link to the other domain in your robots.txt file rather than linking to the URL on your site that then redirects.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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