xmlsitemap_path_exclude
XML Sitemap Path Exclude
A Drupal module that allows you to exclude specific paths from the XML sitemap using regular expression patterns.
Overview
XML Sitemap Path Exclude extends the functionality of the XML Sitemap module by enabling administrators to define patterns for paths that should be excluded from the generated sitemap.
This is particularly useful for removing:
Error pages (e.g., /page-not-found)
Access-restricted pages
Temporary or campaign-specific URLs
Dynamically generated content you don’t want indexed
Features
Exclude URLs using regex patterns
Works with path aliases (user-friendly URLs)
Integrates directly with sitemap generation
Admin UI for easy configuration
Validation for regex inputs
Debug logging for troubleshooting
Requirements
Drupal 10 or 11
XML Sitemap module