Magento google sitemap generation for multistore installation

MagentoHello everyone,
if you ever need to have a sitemap for each store created under a single Magento installation, you will probably face a little error about the unavailability of your specified path for the creation of the sitemap.

Regardless of the path you may specify, you will get the following error all the time:

Path "mypath/mysitemap.xml" is not available and cannot be used.

As you can imagine the problem is not very clear as the error is misleading to a different source.

As today (Magento 1.6.x) the only way to avoid the problem, without touching core files that is, is to understand that Magento want a specific name for the sitemap, and it will not accept anything else:


However, to have more sitemap.xml, one for each storeview, you will need to manage sub-paths, like:


If you would like a clean approach you can, however, work with the rewrites to let the Apache serve a clean url for the sitemap:

RewriteCond %{HTTP_HOST} ^.*yourstore_1\.com$ 
RewriteRule ^sitemap.xml$ yourpath/sitemap.xml [NC]



Also available in dutch!


38 thoughts on “Magento google sitemap generation for multistore installation

  1. Hi, thanks for the post, I can’t seem to get it to work, been trying for hours searching, my primary domain works fine but in my secondary domain I keep getting a 404 error.

      • wonderfull works like charm…. in addition to above… the exact path to be given when generating sitemap would be.


        1.sitemaps is a sub directory in your root folder. you should manually create it
        2. store1 is the store name of your website, example: if your store is creative designs then the path should be


        note: you should first create the creativedesigns folder under sitemaps folder

      • Thank you for your feedback, and yes youa re supposed to manually create the folders to store the sitemap 🙂

  2. Pingback: Sitemap maken in een multistore Magento - Byte Blog

Your opinion is important!

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s