Previously I already wrote about How to register site for Google Webmasters, at the end of that post I promised to write about sitemap for Drupal.

If you are runing Drupal powered site, it's smart to have a sitemap file to sumbit it to Google Webmasters.

 

Step by step guide:

  • Download XML Sitemap module for Drupal
  • Extract it to sites/all/modules
  • Enable it from Modules page
 
Here is the default settings enabled for XML sitemap module, including taxonomy sitemap, and sitemap submission to Google, Bing.
 
When modules enabled, go to admin/config/search/xmlsitemap
This page should show one sitemap generated for your site, like this: your-domain.name.com/sitemap.xml
 
You have two option, check the box next to your sitemap.xml file, and from upper dropdown click update cached files, but in most cases it would be enough. 
We need to configure our sitemap behaviour.
 
Click on Settings tab (admin/config/search/xmlsitemap/settings)
From fieldset choose Content tab:
 
Our content by default is excluded from sitemap file, so we must to include it.
To include/or exclude some content type in sitemap, we must go to content type page we would like to include/exclude. From picture above, I would like to include in sitemap XML file all Blog.
 
Either click on Blog (Your content type) from XML settings page, either go to admin/structure/types/manage/blog
 
 
I have changed Inclusion box value from Excluded to Included, Default priority I haven't touched, I leaved it as default 0.5 (normal)
Now, by visiting your XML sitemap settings page, you should see something like this:
 
Now we are almost good - depending, if you would like add your taxonomy terms as well to sitemap, you should apply the same for Taxonomy term tab (By default they gonna be excluded).
When satisfied with sitemap configuration, go back to admin/config/search/xmlsitemap
Check the bock next to your sitemap file, and click Update cached files
And finally go to Rebuld Links tab, to rebuild your sitemap, after this process, you should have a sitemap ready to be submitted to Google Webmasters.
 
Login to your Google Webmasters account, from Sitemaps view - click ADD/TEST SITEMAP
 
Congrats, your sitemap has been submitted to Google Webmasters, by allowing Google to better understand how to index your site.
Be sure time to time, check your Google Webmaster account, to see if there is no errors or warnings about your sitemap, or other site related issues.