As I know, google accept only one sitemap. So we have a multi store like:

https://www.outdoorequipped.com/ <- entry page

How do I set up or create a correct sitemap?

  • hm, why do you need different sitemap files??? use mod_rewrite – MagenX Nov 13 '15 at 8:23
  • And how I do it? – Simon Vetterli Nov 15 '15 at 11:46

You need to create rewrites in .htaccess:
How to add sitemap.xml for multistore magento

First, create a new folder called sitemaps in the root of your website, then create subfolders for each domain.

Then login to the Magento admin and navigate to – catatlog -> google sitemap

Create or edit the sitemap listings for each store and set the “path to sitemap” field to be the path you created for the store.


Update your robots.txt file. To make sure that the search engine spiders are properly directed to the new sitemaps. You may need to update or create the robots.txt file. Edit the robots.txt file and add the following lines at the top —

# Website Sitemap
Sitemap: http://www.domain_1.com/sitemaps/domain_1/sitemap.xml  
Sitemap: http://www.domain_2.com/sitemaps/domain_2/sitemap.xml

Finally, if your site uses the Apache web server engine, you should update the .htaccess file in the root of your website to direct any other sitemap requests to the proper place.
Locate the following line below the line that reads — RewriteEngine on

And add the following redirect statements below it —

# Sitemap: http://www.domain_1.com/sitemaps/domain_1/sitemap.xml
RewriteCond %{HTTP_HOST} ^.*domain_1\.com$
RewriteRule ^sitemap.xml$ sitemaps/domain_1/sitemap.xml [NC,L,R=301]

# Sitemap: http://www.domain_2.com/sitemaps/domain_2/sitemap.xml
RewriteCond %{HTTP_HOST} ^.*domain_2\.com$
RewriteRule ^sitemap.xml$ sitemaps/domain_2/sitemap.xml [NC,L,R=301]
  • Please do not post the link only, please include any useful information in you post as links to other websites can become broken and future readers cannot read the solution anymore. – 7ochem Dec 16 '15 at 15:36
  • Ok I will write here that info) – Mick Dec 16 '15 at 15:37
  • @Mick I hope you dont mind if i copy your suggestion to another question on main stack. – inrsaurabh Aug 10 '18 at 12:02

Google allows both multiple sitemaps and one sitemap with urls for multiple domains. The only requirement is that you are the verified owner of all of the sites.


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.