Sitemap Restriction to only same or child folders
Unanswered
Red ant posted this in #help-forum
Red antOP
Hi,
I am trying to understand sitemaps a bit more and If I am correct the sitemap standards state that any sitemap needs to point to any url that is in its current path or child's so:
http://example.com/catalog/ but can not include URLs starting with http://example.com/images/
When looking at https://nextjs.org/docs/app/api-reference/functions/generate-sitemaps it states that all sitemaps will live under /sitemap/[id].xml. Would this not break the limitation outlined above, as now that sitemap can only include sitemaps urls pointing to /sitemap/.* meaning that its no longer valid to use even at the root level?
If this is the case how could I make a dynamic sitemap at a specific level without adding the sitemap/ to the path so I would require http://example.com/catalog/sitemap-1.xml, http://example.com/catalog/sitemap-2.xml (or something similar) instead of http://example.com/catalog/sitemap/1.xml, http://example.com/catalog/sitemap/2.xml
I am trying to understand sitemaps a bit more and If I am correct the sitemap standards state that any sitemap needs to point to any url that is in its current path or child's so:
http://example.com/catalog/ but can not include URLs starting with http://example.com/images/
When looking at https://nextjs.org/docs/app/api-reference/functions/generate-sitemaps it states that all sitemaps will live under /sitemap/[id].xml. Would this not break the limitation outlined above, as now that sitemap can only include sitemaps urls pointing to /sitemap/.* meaning that its no longer valid to use even at the root level?
If this is the case how could I make a dynamic sitemap at a specific level without adding the sitemap/ to the path so I would require http://example.com/catalog/sitemap-1.xml, http://example.com/catalog/sitemap-2.xml (or something similar) instead of http://example.com/catalog/sitemap/1.xml, http://example.com/catalog/sitemap/2.xml