0

I have a multistore set up with an english domain.com/en_ca and french store domain.com/fr_ca, fr_ca and en_ca are added by Magento, by enabling the configuration Add Store Code to Urls to Yes.

My problem is to configure google sitemap for each domain.

I cannot use domain.com/en_ca/sitemap_en.xml, sitemap_en.xml is on the root directory, and google force me to use domain.com/en_ca, domain.com/en_ca/sitemap_en.xml return a 404 page error.

I created a real directory en_ca on the root and put the sitemap on it, but this cause the website to stop working.

Any one have a solution?

0

if you are using magento2 then you might to create your sitemap in pub folder for example

domain.com/en_ca/sitemap_en.xml
domain.com/fr_ca/sitemap_fr.xml
  • I created a real directory en_ca on the root and put the sitemap on it, but this cause the website to stop working. – tarek fellah Jul 1 '20 at 12:29
  • if i am not wrong you want to setup multi store and create sitemaps for these... right? Magento itself has own multi store functionality so you no need to create such folders on root, you can manage from magento admin panel. – Alam Zaib Jul 1 '20 at 12:32
  • i tried to put the sitemap in /pub/static/frontend/Vendor/cus-theme/fr_CA but i always get 404 error – tarek fellah Nov 5 '20 at 14:38

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.