More Premium Hugo Themes Premium React Themes

Strapi Plugin Sitemap

Generate a highly customizable sitemap XML in Strapi CMS

Strapi Plugin Sitemap

Generate a highly customizable sitemap XML in Strapi CMS

Author Avatar Theme by pluginpal
Github Stars Github Stars: 264
Last Commit Last Commit: Apr 13, 2025 -
First Commit Created: Dec 18, 2023 -
default image

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.

Installation

To install the Sitemap plugin in your Strapi project, follow these steps:

  1. Install the plugin in your Strapi project using your preferred package manager:
npm install strapi-plugin-sitemap
  1. After successful installation, rebuild the admin UI to include the plugin using the following command:
strapi build
  1. Restart your Strapi server.
  2. The Sitemap plugin should now appear in the Settings section of your Strapi app.

Please note that the plugin has the same installation requirements as Strapi itself. Ensure that you meet the necessary requirements before installing the plugin.

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.