Skip to main content
added 179 characters in body
Source Link
Alex Dinca
  • 2.2k
  • 15
  • 16

You can accomplish this by using an http rewrite rule. Add the following line inside your .htaccess file

RewriteRule ^([^/]+)/(sitemap.xml) /sitemaps/$1/sitemap.xml [L,NC]

after

RewriteEngine on

To use a default store code if none specified in the url, add the following line after the previous one:

RewriteRule ^([^/]*)sitemap.xml /sitemaps/it/sitemap.xml [L,NC]

(Obviously you can use other default store code)

You can accomplish this by using an http rewrite rule. Add the following line inside your .htaccess file

RewriteRule ^([^/]+)/(sitemap.xml) /sitemaps/$1/sitemap.xml [L,NC]

after

RewriteEngine on

You can accomplish this by using an http rewrite rule. Add the following line inside your .htaccess file

RewriteRule ^([^/]+)/(sitemap.xml) /sitemaps/$1/sitemap.xml [L,NC]

after

RewriteEngine on

To use a default store code if none specified in the url, add the following line after the previous one:

RewriteRule ^([^/]*)sitemap.xml /sitemaps/it/sitemap.xml [L,NC]

(Obviously you can use other default store code)

Source Link
Alex Dinca
  • 2.2k
  • 15
  • 16

You can accomplish this by using an http rewrite rule. Add the following line inside your .htaccess file

RewriteRule ^([^/]+)/(sitemap.xml) /sitemaps/$1/sitemap.xml [L,NC]

after

RewriteEngine on