based on https://github.com/kjvarga/sitemap_generator/issues/173
I am trying to do this ... in routes.rb
get 'sitemap(:id).:format.:compression' => 'sitemap#show'
in sitemap_controller.rb
class SitemapController < ApplicationController def show data = open("http://{ENV['AWS_BUCKET_PROD']}.s3.amazonaws.com/sitemaps/sitemap#{params[:id]}.xml.gz") send_data data.read, :type => data.content_type end end
Also make sure that the sitemap (index) file contains links to other Sitemap files (sitemap1, sitemap2 ...) located on your site, not amazon.
source share