I understand that XML Sitemap module is the near-standard way to create a sitemap for a Drupal site.

The Readme file isn't clear to me about how to create a sitemap.

  • Install as you would normally install a contributed Drupal module. Visit https://www.drupal.org/node/1897420 for further information.

  • Once XML Sitemap is installed and enabled, you can adjust the settings for your site's sitemap at admin/config/search/xmlsitemap. Your can view your site's sitemap at http://yoursite.com/sitemap.xml.

  • It is highly recommended that you have clean URLs enabled for this module.

Okay but what should I do in actuality?

What I have tried to get it work

I went to admin/config/search/xmlsitemap/entities/settings and check-marked the entities I want to create a sitemap by and saved the page.

I then went to /admin/config/search/xmlsitemap/rebuild and had an option Select which link types you would like to rebuild but the list container is empty (i.e. there is nothing to select).

When navigating to https://yoursite.com/sitemap.xml I get only one row with http://default/he. This also happens after I rebuild the map.

My question

How to create a sitemap with XML sitemap module?

  • In what way is the module not working? Is there not a response at /sitemap.xml.
    – cilefen
    Sep 22, 2022 at 23:40
  • XML Sitemap is not the "standard" for Drupal 8+. For the week of September 11, 2022, it has 43,906 installs for 8+, while Simple XML Sitemap module has 87,605 installs, making it twice as popular. Sep 22, 2022 at 23:46
  • They said “near-standard”.
    – cilefen
    Sep 22, 2022 at 23:52
  • @cilefen it is not working in the sense that when navigating to yoursite.com/sitemap.xml I get only one row with http://default/he. This also happens after I rebuild the map.
    – Kalmax
    Sep 23, 2022 at 0:25
  • Question edited to indicate what I have tried exactly.
    – Kalmax
    Sep 23, 2022 at 0:27


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.