Drupal is a registered trademark of Dries Buytaert

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
11 months ago
Release cadence
1 day
Stability
71% stable

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