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.
Cheers, saved me hours!
Legend, I never would’ve worked that out from the error message.
This solution did not worked for me, any suggestions?
Are you operating a multi-store Assaf?
Help!!! This solution did not worked for me too, I have 1 store with two views: ‘en’ and ‘es’.
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!
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
problem solved with above reply….Thanks a lot
Great!!! This one works.
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.
I like this post, enjoyed this one thankyou for posting.
Nice solution.. simple but brilliant. many thanks my friend.
Thanks a lot!
Here’s a very good detailed step by step tutorial for creating Magento 2 sitemap on http://magenticians.com/create-magento-2-sitemap/ I found it really easy to follow. I hope you guys will like it. Thanks