> On 2016-May-23, at 04:31 , Rajkumar Ulaganadhan <[email protected]> wrote: > > Hi All, > > I have used dynamic_sitemaps for sitemap. > > > Command to generate xml file "rake sitemap:generate" > > After running this command it is generating this xml files > > <sitemapindex><sitemap> > <loc> > http://www.example.com/sitemaps/site.xml</loc> > </sitemap> > </sitemapindex> > > My Expectation: > > Here i need the protocol as "https" instead of http > > https://www.example.com/sitemaps/site.xml</loc> > > > How to override the default protocol in sitemap. > > > > Please give me suggestions > > Thanks in advance.
A quick look at https://github.com/lassebunk/dynamic_sitemaps/blob/master/lib/dynamic_sitemaps/sitemap.rb <https://github.com/lassebunk/dynamic_sitemaps/blob/master/lib/dynamic_sitemaps/sitemap.rb> and https://github.com/lassebunk/dynamic_sitemaps/blob/master/lib/dynamic_sitemaps.rb <https://github.com/lassebunk/dynamic_sitemaps/blob/master/lib/dynamic_sitemaps.rb> seems to indicate that this is supported in the config file (config/sitemap.rb by default) as: protocol "https" It doesn't get much simpler than that. (I've never used this gem, but if you read a lot of Ruby source, these things start to become more apparent.) -Rob -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5A29435B-AD78-411D-8BE6-D96EF99DB9FE%40agileconsultingllc.com. For more options, visit https://groups.google.com/d/optout.

