Setting up your site map (7.x)

Last updated on
30 April 2025

For an excellent video demonstration of setting up xmlsitemap on Drupal 7, visit https://www.youtube.com/watch?v=n1SL86oWFLE

Here are the steps:

  1. Install the xmlsitemap module
  2. Enable the xmlsitemap module
  3. To include nodes in the sitemap, enable the XML sitemap node submodule.
  4. To include menu items in the sitemap, enable the XML sitemap menu submodule.
  5. If needed, also enable the user, taxonomy, and custom submodules of xmlsitemap
  6. To add nodes to the sitemap, visit the Edit page of each Content Type which you want to appear on the xmlsitemap
  7. Click on the xmlsitemap vertical tab
  8. Under "Inclusion" change "Excluded" to become "Included"
  9. To add pages linked from menus to the sitemap, visit the edit page for each menu whose items should be included (this would usually include the Main menu). Open the XML sitemap fieldset, and similarly change "Excluded" to "Included". Hit Save.
  10. Once that is all complete, go to Configurations --> Search and Metadata --> XML Sitemap
  11. Click on the Rebuild Links tab in the upper right
  12. Click on "Rebuild sitemap" even if the message says that you do not need to.
  13. Now you're taken back to the config page which shows you the link to your xmlsitemap which you can click and confirm that pages have been added

This is a minimal example. Feel free to edit this page and add more steps for adding additional URLs to the xmlsitemap.

Help improve this page

Page status: Not set

You can: