So I’m currently implementing sitemaps for a website that features multiple store fronts.
I used nuxt sitemap module to generate a /sitemap/sitemap.xml
file for the static pages, like homepage, terms and conditions and privacy policy.
Now the website also contains dynamic routes for every store front, for example: mysite.com/store1
& mysite.com/store2
The current task is to create a /sitemap.xml
for each store, so the end result is something like: mysite.com/store1/sitemap.xml
This sitemap will contain everything related to the store, including dynamic subroutes of each product.
I’m currently not aware of any possible way to do this, and I’ve searched a lot but I couldn’t find anything on this. Any ideas?
2
Answers
You can create a sitemap index as follows:
You will have this result:
Try this, it worked for me