Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Content Translation Redirect Module content_translation_redirect crossed 1,000 active installs.

XMLSitemap Path Exclude

3 sites No security coverage
View on drupal.org

This module allows you to exclude specific website paths from your XML sitemap using regular expression patterns. It provides an easy way to prevent certain pages, like error pages or temporary content, from being included in search engine crawls.

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

Activity

Total releases
1
First release
Apr 2026
Latest release
3 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0 Stable Apr 17, 2026