Last updated November 11, 2016. Created on September 2, 2005.
Edited by volkswagenchick, ashish_nirmohi, ChandeepKhosa, Gold. Log in to edit this page.

XML Sitemap (formerly Google Sitemap) automatically creates a site map that conforms to the specification. This helps search engines keep their search results up to date.

XML Sitemap includes optional modules which allow the site administrator to customize the site map output and submit the site map to search engines automatically.

Drupal serves the 'sitemap.xml' file from the cached file XML Sitemap generates via hook_menu(). It does not write the sitemap.xml file to your file structure.

Before you install or upgrade

  1. Always backup your site and database.
  2. When you are upgrading the XML Sitemap module to a new version, be sure to delete the old module files before copying the new ones to your sites/all/modules folder. This recommendation is valid also when upgrading major Drupal versions (Drupal 5.x to Drupal 6.x). The new version of XML Sitemap can adopt a different directory structure, and you could inadvertently have duplicates of module files if you do not follow the above instructions.
  3. Be sure to always execute the update of Drupal through update.php; if update.php is not executed, the database tables are not being updated, and this will cause SQL query errors provoked by the difference between the fields name used by the code, and the name of the fields really present in the database.
  4. After using update.php, visit /admin/reports/status, and verify there aren't warning (or error) messages given by XML Sitemap; if there are any messages, follow what they suggest you to do.

Development roadmap

  1. The 6.x-1.x and 5.x-2.x branches are only accepting bug reports so that they can reach a stable official version. Both branches are no longer accepting feature requests.
  2. The 6.x-2.x branch is undergoing a complete rewrite that will address these the performance and scalability issues. Upgrading from any 6.x-1.x versions is now supported, but still in testing. Before upgrading, make sure to backup your site's database. Please report feedback on the success/errors for your update.
  3. Once the 6.x-2.x branch is tested and released as 6.x-2.0, the 6.x-1.x branch will no longer be supported. Those wishing to help with the re-write should read #448000: Big, Over-Arching Sitemap Architecture Discussion (tm) or Dave Reid's blog post on State of XML sitemap 2009.
  4. The 7.x-2.1 version is the recommended release for Drupal 7.
  5. This module has a pre-release version for Drupal 8.

Looking for support? Visit the forums, or join #drupal-support in IRC.