Magento – HTTPS – cannot generate sitemap

httpssitemaps

Does any of you have experienced problems with generating the sitemap due to using https instead of http?

I have 2 webshops (each own installation). One of those have a ssl certificate and uses https. I have added this code in the .htaccess to make the whole site use https:

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Everytime I try to generate sitemap it gives me an error that it's unable to generate the sitemap

while on the other installation (which do not use https) I can generate it no problem

that's why I'm concluding at the moment that there is something wrong with the https settings but I have no clue how to fix it

Best Answer

Are you using "sitemap.xml" as the filename? Magento gives you the option to enter a custom filename, but for some reason it will throw an error when you enter a different name.

If you have multiple stores, you can add them in different folders (like /en_US/ and /fr_FR/) and still set the filename to sitemap.xml.

If that isn't working either, there is something wrong with the write permissions of your file (or the owner).

Related Topic