0

I have a strange issue where when you visit www.website.com/sitemap.xml or www.website.ca/sitemap.xml, it shows the sitemap as an html page.

The following has been added to my .htaccess :

#Sitemap: https://www.website.ca/sitemaps/ca/sitemap.xml
RewriteCond %{HTTP_HOST} ^website.ca
RewriteRule ^sitemap.xml$ /sitemaps/ca/sitemap.xml [NC,L,R=301]

#Sitemap: https://www.website.com/sitemaps/usa/sitemap.xml
RewriteCond %{HTTP_HOST} ^website.com
RewriteRule ^sitemap.xml$ /sitemaps/usa/sitemap.xml [NC,L,R=301]

Is this normal?

  • Please confirm your Magento version? You have mentioned Magento2 and Magento-1.9 both. – Mohit Kumar Arora Jun 12 '18 at 8:10
  • @MohitKumarArora I am using Magento 1.7 actually, my mistake – JronCh Jun 12 '18 at 8:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.