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). 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). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module allows you to add arbitrary URLs, meaning non-Drupal entity links, to your XML sitemap. It provides a user-friendly interface to manage these links with options for priority, change frequency, and language, enhancing SEO for external pages or custom paths.

Need to add arbitrary URLs to your XML sitemap? The Simple XML sitemap arbitrary links module makes it easy! It provides a simple interface to manage arbitrary links, perfect for SEO without coding.

Features

The Simple XML sitemap arbitrary links module enhances Drupal’s Simple XML Sitemap module by allowing you to:

  • Add Arbitrary Links: Include URLs not tied to Drupal entities (e.g., external pages, custom paths).
  • User-Friendly Interface: Manage links via a table with fields for URL, priority, change frequency, last modified date, and language.
  • AJAX Support: Add new links dynamically without page reloads.
  • Unlike core sitemap tools, it supports custom URLs with full control over sitemap attributes. Use this module when you need to boost SEO by including non-entity URLs (e.g., marketing landing pages) or multilingual sitemap entries. It’s ideal for site admins who want flexibility without custom development.

Post-Installation

  1. Go to `/admin/config/search/simplesitemap/custom-arbitrary-links` (Configuration > Search and metadata > Simple XML Sitemap > Custom Arbitrary Links).
  2. You’ll see a table listing existing custom links (if any).
  3. Click “Add new link” to insert a blank entry, then edit fields like URL, priority, etc.
  4. Keep in mind that you can use different links formats: link, /link, example.com/link. They will be formatted automatically to example.com/link
  5. Save the form to update the database. Check “Regenerate all sitemaps” to refresh `sitemap.xml`.
  6. To remove link from database just press Remove button.

No new content types or text formats are added—just visit the config page to start managing links. Ensure the Simple XML Sitemap module is enabled and configured first.
Add proper permissions to the desired role with "Administer custom sitemap links" permission.

Additional Requirements

  • Simple XML Sitemap This module depends on the `simple_sitemap` module (version 4.x recommended) to integrate custom links into the generated sitemap. Install it via Composer: `composer require 'drupal/simple_sitemap'`. No external libraries or APIs are required.
  • Pathauto: Enhances URL management if you’re linking to Drupal-generated paths.
  • Redirect: Useful for managing redirects alongside custom sitemap URLs.

Similar projects

  • Simple XML Sitemap (core functionality): Adds entity-based sitemap generation but lacks a UI for arbitrary links.
  • XML Sitemap (legacy): An older module with broader features but less modern integration.

Activity

Total releases
7
First release
Mar 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 7
Maintenance
Dormant

Release Timeline

Releases

Version Type Release date
2.2.0 Stable Mar 17, 2025
2.1.1 Stable Mar 15, 2025
2.1.0 Stable Mar 15, 2025
2.0.0 Stable Mar 15, 2025
8.x-1.0-rc1 Pre-release Mar 14, 2025
8.x-1.x-dev Dev Mar 14, 2025
8.x-1.0 Stable Mar 14, 2025