Is your feature request related to a problem? Please describe.
Currently, our system generates sitemap indexes that assume the sitemap XML files are hosted within the same domain as the application. However, in cases where the main sitemap XML content is deployed on a different site, managing and linking these external sitemaps becomes cumbersome and error-prone.
For example, we have a huge sitemap(more than 100k record), we dont wanna manage it in major repo, and also dont transport it with any backend(because file is too large). so a static file which host sitemap with s3(maybe others) is a best solution.
but we also wanna keep major sitemap in main repo(domain).
Describe the solution you'd like
We need to introduce a new field named sitemapSiteUrl in our configuration. This addition is aimed at enhancing the generation and management of sitemap indexes, especially when the main sitemap XML is hosted externally.
Introduce a sitemapSiteUrl field which will allow users to specify the base URL where the main sitemap XML is hosted. This field will be used to prepend the correct site URL to the sitemap entries in the index, thus facilitating proper linking and management.
Is your feature request related to a problem? Please describe.
Currently, our system generates sitemap indexes that assume the sitemap XML files are hosted within the same domain as the application. However, in cases where the main sitemap XML content is deployed on a different site, managing and linking these external sitemaps becomes cumbersome and error-prone.
For example, we have a huge sitemap(more than 100k record), we dont wanna manage it in major repo, and also dont transport it with any backend(because file is too large). so a static file which host sitemap with s3(maybe others) is a best solution.
but we also wanna keep major sitemap in main repo(domain).
Describe the solution you'd like
We need to introduce a new field named
sitemapSiteUrl
in our configuration. This addition is aimed at enhancing the generation and management of sitemap indexes, especially when the main sitemap XML is hosted externally.Introduce a
sitemapSiteUrl
field which will allow users to specify the base URL where the main sitemap XML is hosted. This field will be used to prepend the correct site URL to the sitemap entries in the index, thus facilitating proper linking and management.Now generate file should looks like those:
sitemap.xml:
sitemap-0.xml:
Describe alternatives you've considered
Here is my patches:
and git ignore file:
Additional context
If you think its a good idea, i can create a PR for that