XML Sitemap Module for Drupal


The XML sitemap module creates a sitemap for your Drupal site. This sitemap is not for visitors but for search engines. It conforms to the sitemaps.org specification and helps search engines to more intelligently crawl your website and keep their results up to date. The sitemap created by the module can be automatically submitted to Ask, Google, Bing (formerly Windows Live Search), and Yahoo! search engines. The module also comes with several other modules that can add sitemap links for content, menu items, taxonomy terms, and user profiles.

Step 1. Download and Install


Download the extension from http://drupal.org/project/xmlsitemap

Go to Modules, Browse for the file, click Install, then follow the prompts to activate the module.

Step 2. Enable the module


Go back to the Modules page and find the newly installed modules and place check marks next to all of them and click Save configuration.

Step 3. Run reports and look for errors or problems

  1. Click Reports and run a Status Report
  2. Run Cron
  3. Click View user profile permission

You will get two messages, one telling you to run cron, which you can run by clicking the blue link in the message. After you have run cron, you will still be on the reports page. You can scroll down and click the blue link to View user profile permissions. In order to list user profile links in the sitemap, the anonymous user must have the View user profiles permission.

Step 4. Access the module configuration


Configure each of the modules that have “Configure” links. The first three all need configuration

  1. XML sitemap
  2. XML sitemap custom
  3. XML sitemap engines

Step 5. Make sure the Anonymous User can view user profiles


Check the box for View user profiles.

Scroll to the bottom and click Save permissions.

Step 6. Configure the modules


Click Modules.

Click Configure next to XML sitemap.

On the XML sitemap page there are tabs for configuring custom links and search engines. You will not need to return to this page to configure the them. You can do everything from one page.

Alternative access: Go to Configuration > XML sitemap. There is always more than one way to find something in Drupal.

Step 7. Go through the tabs and configure the obvious settings


Click each tab and adjust or add as needed.

By default XML Sitemap only adds your homepage to the sitemap. You will have to add additional content types manually. You do this by editing the content type. To add existing types you will need to go to the content types and add each on.

Step 8. Add other content types to your XML sitemap


Go to Structure > Content types.

Step 9. Choose a content type and edit it


Click edit. You will need to repeat this step for each content type you want to add to the site map.

Step 10. Decide to include or exclude the content type


Go to the Edit tab on content type page, scroll to the bottom and click on XML sitemap.

You will see the Inclusion setting. If you choose “Included” all the items of this type you add will be automatically added to the site map.

Be sure to save your changes at the bottom of the page.


0 0 votes
Article Rating
Notify of

Newest Most Voted
Inline Feedbacks
View all comments
11 years ago

great work , thanks

Metin Görel
Metin Görel
11 years ago

Tahank you very match

Sujay Uvari
Sujay Uvari
10 years ago

Wowww really great. Thank you very much.

10 years ago

Thanks, very clear instructions. Much appreciated.

9 years ago

Thanks that was a big help. I spent hours trying to figure out how to make it work.

9 years ago

Is there a way to sort the sitemap by date?

8 years ago

Very helpful, thank you!

Would love your thoughts, please comment.x