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:
- Install the xmlsitemap module
- Enable the xmlsitemap module
- To include nodes in the sitemap, enable the XML sitemap node submodule.
- To include menu items in the sitemap, enable the XML sitemap menu submodule.
- If needed, also enable the user, taxonomy, and custom submodules of xmlsitemap
- To add nodes to the sitemap, visit the Edit page of each Content Type which you want to appear on the xmlsitemap
- Click on the xmlsitemap vertical tab
- Under "Inclusion" change "Excluded" to become "Included"
- 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.
- Once that is all complete, go to Configurations --> Search and Metadata --> XML Sitemap
- Click on the Rebuild Links tab in the upper right
- Click on "Rebuild sitemap" even if the message says that you do not need to.
- 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:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion