Skip to content
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

Is there a way to group specified routes to dedicated sitemaps.xml? #64

Open
fl0wo opened this issue Aug 22, 2024 · 0 comments
Open

Is there a way to group specified routes to dedicated sitemaps.xml? #64

fl0wo opened this issue Aug 22, 2024 · 0 comments

Comments

@fl0wo
Copy link

fl0wo commented Aug 22, 2024

Hi, in case of long xml contents (programmatic SEO SSR pages for example), I'd like to separate the routes in separated sitemaps, e.g.:

sitemap-index.xml, contains sitemap-0.xml:

<?xml version="1.0" encoding="UTF-8"?>
  <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.com/sitemap-0.xml</loc>
  </sitemap>
</sitemapindex>

What if, the main sitemap contains also sub sitemaps:

<?xml version="1.0" encoding="UTF-8"?>
  <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.com/sitemap-0.xml</loc>
  </sitemap>
    <sitemap>
    <loc>https://example.com/sitemap-my-sub-route.xml</loc>
  </sitemap>
    <sitemap>
    <loc>https://example.com/sitemap-my-sub-route-second.xml</loc>
  </sitemap>
    <sitemap>
    <loc>https://example.com/sitemap-my-routes-grouped-here.xml</loc>
  </sitemap>
</sitemapindex>

Is that achievable already?

I know I can set "entryLimit: 50," and this will split equally the routes in the sitemaps, but I'd rather want to group a specified list of routes in defined sitemaps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant