Installation of this module is normal (see
Installing Contributed Modules)

Enabling Items for inclusion on your XML Sitemap

Sitemap modules

To allow node content to appear in your XML sitemap (Drupal versions before 8)

  1. Navigate to admin/modules and enable the "XML Sitemap Node" module.
  2. Navigate to each content type that you would like to enable (at admin/structure/types/manage/<content_type>), and browse to the "XML Sitemap" vertical tab.
  3. Change the "Inclusion" dropdown to "Included". Note you must do this on every content type that you want included.
  4. Enabling content types for inclusion

To include all node content created to appear in your XML sitemap (Drupal 8 and 9)

  1. Navigate to admin/config/search/xmlsitemap/entities/settings
  2. Select the checkbox content.
  3. Go to "Configure" the content type of the content you want to include.
  4. Set the value "Included" in the select box "Inclusion"
  5. Rebuild sitemap.
  6. Including all content for a content type.

To allow Menu Items (views and landing pages) to appear in your XML sitemap

  1. Navigate to admin/modules and enable the "XML Sitemap Menu" module. 
  2. Navigate to each Menu that you would like to enable such as admin/structure/menu/manage/main-menu), and navigate to the Edit Menu button at the top right of the page.
  3. Expand the "XML Sitemap" fieldset near the bottom of the page.
  4. Change the "Inclusion" dropdown to "Included". Note you must do this on every menu that you want included.

To allow Taxonomy landing pages to appear in your XML sitemap

  1. Navigate to admin/modules and enable the "XML Sitemap Taxonomy" module. 
  2. Navigate to each Taxonomy vocabulary that you would like to enable such as /admin/structure/taxonomy/<vocab>), and navigate to the Edit button at the top right of the page.
  3. Expand the "XML Sitemap" fieldset near the bottom of the page.
  4. Change the "Inclusion" dropdown to "Included". Note you must do this on every menu that you want included.

To allow User Profiles to appear in your XML sitemap

  1. Navigate to admin/modules and enable the "XML Sitemap User" module. 
  2. Navigate to admin/config/people/accounts
  3. Expand the "XML Sitemap" fieldset near the bottom of the page.
  4. Change the "Inclusion" dropdown to "Included".

Retroactively including content, menu items, taxonomy, and profiles in your sitemap

If you install XML sitemap on a site that already includes content, you will need to update content so it can be included. In Drupal 8 you can set the default value in admin/config/search/xmlsitemap/entities/settings and rebuild the sitemap for all the content to be included.

  1. Navigate to admin/config/search/xmlsitemap/rebuild
  2. Click the "Rebuild Sitemap" button
  3. visit your sitemap at /sitemap.xml to verify it exists and looks correct.

XML Sitemap in multilingual sites

  1. Navigate to admin/config/search/xmlsitemap
  2. Create a sitemap for every language.
  3. Rebuild sitemap.
  4. XML Sitemap for multilingual site

Comments

rondp’s picture

As of 6.x-2.0-rc2, you'll also need to apply this patch: https://drupal.org/node/920062#comment-4704700
Otherwise no sitemap will ever be generated and Drupal will keep telling you that you need to run cron.
(And because cron times out due to the bug, doing so will get you nowhere.)