How to enable sitemap in X-cart v5.1

Small things like this can be missed when upgrading to a new system until it is too late and Google already punished your store for lack of proper XML sitemap. It may not affect your rating or it may – in any case, it’s better not to mess with Google if this is something easy to setup.

 

 

 

To setup XML sitemap in X-cart v5.1:

1) go to Extensions -> Installed Modules

2) find “XML sitemap” module and click “Settings”

3) check the settings you want

4) download .htaccess file from your store folder by FTP (or open that file in File manage of your hosting control panel)

5) before this line:

</IfModule>

add

RewriteRule ^sitemap.xml(\?.+)?$ cart.php?target=sitemap [NC,L,QSA]

6) save modified .htaccess file and upload back to store folder

Now you can open sitemap via default URL :

http://www.YOURSTORE.com/sitemap.xml

Note: this sitemap file will have URL of complete sitemap which search engines will load.

Sources:

  • http://forum.x-cart.com/showthread.php?t=69984&highlight=XML+sitemap
  • https://bt.x-cart.com/view.php?id=43571

 

 

Do you manage eCommerce website or online store?

Introducing a comprehensive guide and action plan like nothing you've tried before. Designed specifically to revamp your e-commerce strategy from the ground up, it's your key to unlocking the potential of your online store.