Google sitemap files for Rails projects

后端 未结 6 1979
情深已故
情深已故 2020-12-07 08:13

Is there an easy way to create a sitemaps file for Rails projects? Especially for dynamic sites (such as Stack Overflow for example) there should be a way to dynamically cre

6条回答
  •  余生分开走
    2020-12-07 08:49

    This article explains how a sitemap can be generated.

    Basically should should create a controller which finds all pages (eg your Posts) and put in into an XML file. Next you tell Google about the location of the XML file and when your website is updated.

    A simple Google rails sitemap query reveals lots of other articles explaining basically the same thing.

提交回复
热议问题