Ecwid's SEO friendly URLs

I want to have SEO friendly URLs in Edwic for my projects, for example: https://www.hechoencuerno.com/shop/

I follow the instructions, but the best solution requires edit the .htaccess

In my case:

<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.baseUrl = '/shop';
    </script>

Documentation here: Setting up SEO friendly clean URLs in Ecwid (Examples) · GitHub

Navigating in the site looks well, but if you try open the Direct link isn’t works, like https://www.hechoencuerno.com/shop/SAMPLE-Black-Tank-p376945147

It’s possible use the SEO friendly URLs in Ecwid like this Direct link?

2 Likes

Hi! I don’t think this is possible because it requires server side access (.htaccess).
I think this could be a good feature request to improve on the Ecwid Integration.

Right now, you can only do what it’s described on point no: 3 " How to enable clean URLs if you don’t have access to .htaccess file"

The query-based clean URLs will look like this:
example.com/shop?store-page=My-Product-p123
example.com/shop?store-page=My-Category-c123

P.S. I’ve seen that you’ve already enabled point no. 3 on your website

I think they could put something similar to Ecwid’s integration into Wordpress.

But make it works for both Ecwid integration and external Ecwid users (like me).