sitemap
sitemap copied to clipboard
Confusion over the :public_path parameter
In the example in the README, the sitemap is exposed under the folder /sitemaps
. This also seems to be the default.
However, according to the information here, the sitemap should be under the root of the website. Otherwise,
A Sitemap file located at
http://example.com/catalog/sitemap.xml
can include any URLs starting withhttp://example.com/catalog/
but can not include URLs starting withhttp://example.com/images/
.
I wonder if the intention is to let the user manually specify another sitemap.xml under the website root to point to those files in /sitemaps
, otherwise this configuration could be a bit misleading?
Though it seems that nowadays it doesn't really matter to most search engines, even though the spec states otherwise: https://webmasters.stackexchange.com/questions/23916/can-a-sitemap-index-file-list-sitemaps-in-a-different-directory/23933#23933