Path “sitemap.xml” is not available and cannot be used.

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

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

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

As ever, we don’t have a clear error message leading us to a solution. Basically, what’s happening is that Magento wants to use the name sitemap.xml for each sitemap created. This is obviously a problem if you have two sitemaps.

The simple solution to this is to create each sitemap in a separate directory:

/sitemaps/site2/sitemap.xml

Relevant for users wanting to create a Magento Google sitemap in a multistore installation.

Read 14 comments

  1. I have a multi store too, I get the same error. The folder has 777 and there is no file in it. I also tried placing an empty file (which was 777 too), but whatever I do, I always get the same result…

    Any suggestions would be appreciated!

  2. Problem solved: Magento won’t accept any other filename but “sitemap.xml”. So in case of a multi-store environment, you’ll need to specify different paths. This is how I did it:

    /sitemap/nl/sitemap.xml
    /sitemap/en/sitemap.xml
    /sitemap/de/sitemap.xml

  3. Solution:
    1. Magento only accepts “sitemap.xml” as filename for the sitemap,
    2. Ensure that the folder structure is created. For example: for path “/sitemaps/NG/” make sure that the folder “sitemap” is created under your Magento root folder and that the subfolder “NG” is created inside “sitemaps”.

    The sitemap generation should go through.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.