The Sitemap Plugin for Strapi v5 is a powerful tool to dynamically generate a sitemap in XML format for your Strapi application.
released March 3, 2026
npm install strapi-5-sitemap-pluginThe Sitemap Plugin for Strapi v5 is a powerful tool to dynamically generate a sitemap in XML format for your Strapi application. It automates the creation of sitemaps for your collection types and allows you to include custom links with detailed configurations, ensuring that your site is easily navigable by search engines.
/api/strapi-5-sitemap-plugin/sitemap.xml/[slug])lastmod (last modification date)changefreq (change frequency for search engines)priority (page priority)lastmod.sitemap.xml becomes the index; each defined sitemap is available at sitemap-{name}.xml.npm install strapi-5-sitemap-plugin/api/strapi-5-sitemap-plugin/sitemap.xml.sitemap-{name}.xml).The plugin offers a configuration UI in the Strapi Admin under Settings → Sitemap, where you can:
/api/strapi-5-sitemap-plugin/sitemap.xmlsitemap.xml is the index listing all defined sitemaps./api/strapi-5-sitemap-plugin/sitemap-{name}.xml (e.g. sitemap-blog.xml). Ensure getSitemapBySlug is enabled for Public if you need these URLs to be publicly accessible./index) and click Save options.Single sitemap (sitemap.xml):
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/your-collection-type-slug</loc>
<priority>0.8</priority>
<changefreq>daily</changefreq>
<lastmod>2025-01-15T10:00:00Z</lastmod>
</url>
<url>
<loc>https://example.com/your-custom-page</loc>
<priority>0.5</priority>
<changefreq>monthly</changefreq>
</url>
</urlset>Sitemap index (when “Use sitemap index with multiple sitemaps” is enabled, sitemap.xml):
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/api/strapi-5-sitemap-plugin/sitemap-blog.xml</loc>
</sitemap>
<sitemap>
<loc>https://example.com/api/strapi-5-sitemap-plugin/sitemap-pages.xml</loc>
</sitemap>
</sitemapindex>Do you need a custom Strapi plugin or a specific feature for your project?
DigitalMoonrise is specialized in Strapi plugin development and tailored solutions to fit your needs.
📧 Feel free to contact me via my website: DigitalMoonrise, your digital agency for Websites, Online Shops and Configurator with Next.js and Strapi
Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.
This plugin is licensed under the MIT License.
Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.
Submit
