Strapi Plugin Sitemap

screenshot of Strapi Plugin Sitemap
strapi

Generate a highly customizable sitemap XML in Strapi CMS

Overview

The Sitemap plugin for Strapi is a versatile tool that allows users to generate and manage XML sitemaps for their Strapi projects. It offers a range of features such as multilingual support, URL bundling, dynamic paths, virtual sitemaps, cron regeneration, sitemap indexes, URL exclusions, custom URLs, and a command-line interface. The plugin is easy to install and can be seamlessly integrated into Strapi projects. This article provides an overview of the plugin's key features, installation process, and usage guidelines.

Features

  • Multilingual: Implements rel="alternate" with @strapi/plugin-i18n, allowing for multilingual support in sitemaps.
  • URL bundles: Bundle URLs by type and add them to the sitemap XML, enabling easy management and organization of URLs.
  • Dynamic paths: Implements URL patterns that support injecting dynamic fields, providing flexibility in generating URLs.
  • Virtual sitemap: Sitemaps are served directly from the database, improving performance and reducing the need for manual updates.
  • Cron regeneration: Automatically scheduled cron job for sitemap regeneration, ensuring that the sitemap remains up-to-date.
  • Sitemap indexes: Paginated sitemap indexes for large URL sets, making navigation and management more efficient.
  • Exclude URLs: Easily exclude specified URLs from the sitemap, giving users complete control over which URLs are included.
  • Custom URLs: Allows the addition of URLs that are not managed in Strapi, useful for incorporating custom routes or pages.
  • CLI: Provides a command-line interface for sitemap generation, enhancing the accessibility and ease of use.
  • Styled with XSL: Human-readable XML styling for improved readability and understanding.

Summary

The Sitemap plugin for Strapi offers a comprehensive solution for generating and managing XML sitemaps in Strapi projects. With features such as multilingual support, URL bundling, dynamic paths, virtual sitemaps, cron regeneration, sitemap indexes, URL exclusions, custom URLs, and a command-line interface, the plugin provides users with extensive control and flexibility in managing their website's sitemap. The installation process is straightforward, and the plugin seamlessly integrates into Strapi projects. By using this plugin, users can simplify the management and maintenance of their website's sitemap, improving SEO and user experience.

strapi
Strapi

Strapi is an open source headless CMS that provides a customizable content management system and API for your projects. It allows you to manage content in a visual interface and use a REST or GraphQL API to retrieve the data.