Either an Action generates dynamically your sitemap.xml
, then you have to configure the URL like this:
GET /sitemap.xml controllers.Application.sitemapGenerator
Either you generate your sitemap.xml
by hand, then put it in the public
folder of your Play app, and then add an Asset route:
GET /sitemap.xml controllers.Assets.at(path="/public", file = "sitemap.xml")