This project is not covered by Drupal’s security advisory policy.
Logs the http status for each sitemap location in the status report and adds an entry to the Toolbar. Optionally checks for errors or specific elements in the DOM.
Use case: while doing a deployment (production or pull request based environment),
be able to check the status of each page from the sitemap based on a production database.
As unit/E2E tests might contain testing gaps and/or possibly not catch "content based" issues (like redirects/aliases), this can be used as an affordable smoke test.

| Status check | Toolbar result | Executed by default |
|---|---|---|
| 5xx http status | ❌ | Yes |
| DOM error | ❌ | Optional |
| DOM missing element | ❌ | Optional |
| 4xx http status | ⚠️ | Yes |
| 3xx, 2xx http status | ✅ | Yes |
| Unreachable | ℹ | Yes |
| Not checked yet | ❓ | n/a |
Dependencies
- Simple XML Sitemap
- curl and libxml PHP extensions
Configuration
Can be used without any configuration via drush.
Optional configuration for UI or cron based checks:
Configuration > Development > Sitemap status (/admin/config/development/sitemap-status).
Drush can be used on build e.g. within a post-rollout task. Example: generate the sitemap then run the check.
- run:
name: drush ssg
command: drush simple-sitemap:generate
service: cli
- run:
name: drush ssc
command: drush sitemap-status:check
service: cli
Usage and roadmap
drush sitemap-status:check (alias: drush ssc)
For drush options and the roadmap view the project readme.
Project information
- Project categories: Developer tools
67 sites report using this module
- Created by colorfield on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
Drupal 10 and Simple sitemap 4.x support
Development version: 1.0.x-dev updated 9 May 2023 at 13:51 UTC
