-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creation of sitemap.xml files in sub directory #306
Comments
I think if you are dumping to the sub-dir then you should configure routing prefix to be same in |
If I understand correctly, you are proposing to expose the routes to the sitemap generation controller (which generates the sitemap on the fly). Due to the large amount of pages I prefer generating the sitemap.xml files regularly with a cron job: bin/console presta:sitemaps:dump /var/www/public/sitemap/site-1 --base-url="https://www.site-1.com" I think all it needs is to have an additional "relative-path-to-sitemap" parameter that is added to all sitemap-section-links. |
From an historical point of view, this bundle was created to serve sitemap on the fly But I think we better rethink this whole thing by making an inventory of all use cases we want to cover, and find a way to rewrite these code parts with new config structure |
I've the same issue. It's related with #138 If you set --base-url, it will work. But it's not consistent |
There is the possibility to set the target directory where the files shall be dumped to. However the links between the generated section-xml-files don't respect that and try link the files from the web root.
Similar to the file prefix a sub-directory config would be great so the created links between each sitemap-file add this sub-directory in each path.
The text was updated successfully, but these errors were encountered: