Creating Google Sitemaps for Magento sites
This is an old revision of the document!
Sitemaps are an easy way for webmasters to inform search engines about pages on their sites that are available for crawling. In its simplest form, a Sitemap is a plain text file that lists URLs for a website. A Sitemap can also be provided in an XML format that includes additional metadata about each URL so that search engines can more intelligently crawl the site.
All major search engines use the same format for their sitemaps. Magento refers to them as “Google Sitemaps” but they are actually supported by the Yahoo! and Microsoft search engines too, and probably other search engines as well. The common sitemap format is documented at http://www.sitemaps.org/.
Magento can create Google sitemaps automatically. Sitemaps are defined in Admin > Catalog > Google Sitemap. Magento sitemaps contain the URLs for Category pages, Product pages and CMS pages.
Once you’ve defined your sitemaps, you can manually generate each sitemap by clicking on the Generate link.
Note: Magento writes sitemap XML files to the main Magento directory or one of its subdirectories. If you use separate server accounts for each store in a multi-store setup, you may have to copy the sitemap file into the directory structure of each account to give the search engines appropriate access to it.
The easiest way to provide a sitemap to the search engines is to link to it from the robots.txt file for the website. The Sitemap directive in robots.txt tells search engines where the sitemap is located.
You may also register each sitemap manually. To register a website and its sitemaps in the search engines, use the links below:
There is now a free extension which will submit your sitemap to several major search engines (Google, Yahoo, Bing and Ask) automatically. It’s called ‘Sitemap Submit’.
Magento can be set up to automatically refresh Google Sitemaps at regular intervals. This function is configured in Admin > System > Configuration > Google Sitemap.
To use Magento’s automatic generation of Google Sitemaps, you must activate the Magento Cron service.