tl;dr: Install and add a drush d8_sitemap scheduled job.
Why another sitemap project? This is a very simple but quite powerful module built using Drupal 8 features creating a sitemap of SEO-wise interesting URLs. The Drupal 8 features used is the incoming request handling, everything up to but not including the actual controller runs against every URL considered. So middlewares and request subscribers all run.
Interesting URLs are considered those where the outbound processed entity URLs does not equal to the original one. This will most often happen because it is aliased but any other outbound processor will do. Common reference entity types are considered for inclusion, in core this means media, node, term, media and user entity types. It's also possible to manually enter a path.
If a URL redirects, the redirect target will be considered for the sitemap (redirect detection is very generic, not specifically integrating with redirect module).
Many URLs will be excluded:
- 403 or 404
- metatag canonical URL pointing to somewhere else (TODO: add that URL to the sitemap)
- metatag robots excluding URL
- robots.txt excluding URL
To generate the sitemap run drush d8_sitemap repeatedly, best is to be scheduled to run in the background. Any number of these can be run in parallel as well.
The XSL parts are borrowed from simple_sitemap, thanks for those.
drupal/metatag and bopoda/robots-txt-parser needs to be installed. Before the first release is cut (tentatively scheduled for the first week of February) a composer.json will be added.
Currently the module installer creates a sitemap entry for every entity (this is extremely fast as it runs entirely within the database), probably this should be moved this into a separate drush command.
Project information
Seeking co-maintainer(s)
Maintainers are looking for help reviewing issues.- Project categories: Multilingual, Search engine optimization (SEO), Developer tools
1 site reports using this module
- Created by ghost of drupal past on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.