Setting up SEO friendly product URLs Print

  • Store, SEO
  • 0

To improve SEO URLs for products add this Javascript to the website’s Global Settings Footer Tab.

URL Before
../mydemosite.com/shop/category-name#!/Product-Name/p/328210955/category=96146559

URL After
../mydemosite.com/shop/category-name?store-page=Product-Name-p328210955

<script>
window.ec = window.ec || {};
window.ec.config = window.ec.config || {};
window.ec.config.storefrontUrls = window.ec.config.storefrontUrls || {};
window.ec.config.storefrontUrls.cleanUrls = true;
window.ec.config.storefrontUrls.queryBasedCleanUrls = true;
</script>

Important: Make sure to add {bb_sitefooter} to your Page Template(s) that Store products appear on.


Was this answer helpful?

« Back

Powered by WHMCompleteSolution