Check out the tools to improve the store’s SEO.

Table of contents:

SEO-friendly URLs

By default, Ecwid URLs address store pages in a hash part of the URL (after the # sign). Example:!/My-Product/p/123/category=0

Search engines nowadays index such pages well. However, the general SEO recommendation is to keep URLs as simple as possible and address the site pages in the path part of the url, i.e. in the part before ’?’ or ’#’ signs.

Ecwid allows to change the store URLs accordingly, so that they look like this:

Follow the steps below to enable SEO-friendly URLs in an Ecwid store.

How to enable SEO-friendly URLs

Step 1. Configure your server: add URL rewrite rules

In the SEO friendly URL scheme, Ecwid places a page title right after the store page path in the URL, so that it looks like a subdirectory: .

On the other hand, this is just a page on your server, not a directory. So if the server will try to find something inside the store page, it will fail and return 404 errors. To make your server properly process these URLs, you will need to configure URL rewrite rules.

The general rule is to map everything after slash on the store page to the store page itself, i.e.:

Specific configuration depends on your server:

See examples codes

When server configuration can’t be changed

The enabling of the SEO-friendly URLs involves modification of the server settings and some website owners simply can’t access it sometimes. The query-based clean URLs is a workaround for this situation – all you need to enable them is to modify the Ecwid integration code (ignoring the Step 1 and 2 of SEO-friendly URLs)

Query-based clean URLs for Ecwid allow to change the store URLs so that they look like this: thus imrpoving the SEO standings of the store pages, but without any changes to the server configuration.

How to enable query-based clean URLs

On the site page where you add Ecwid store, you will need to add a few lines of javascript code before the Ecwid integration code. It will tell Ecwid to enable query-based URLs on this page. See example code

If the baseUrl is specified, Ecwid will use this as a base for the query-based URLs. It is an optional field that is helpful when you want to have a permanent query parameter when a customer browses the store. In other cases, we suggest not using it in your code.

Step 2. Adjust Ecwid integration code: enable the SEO URLs

On the site page where you add Ecwid store, you will need to add a few lines of javascript code before the Ecwid integration code. It will tell Ecwid to enable SEO friednly URLs on this page. See example codes

Make sure to replace the “/store” dummy value in the last line with the actual store page path. Ecwid will use this as a base for the clean URLs. E.g. if you specify this URL as your base URL: /subfolder/shop and your site is on

Ecwid will address store pages like this: - - -



Please see the example codes on this page


Q: Will the regular hash-bang URLs continue working if I enable the new SEO URLs?

Yes, the old URLs will be supported, so if someone clicks the old link anywhere on the web, they will get to the corresponding store page. Upon opening the page, Ecwid will automatically replace the hash part so that the visitor will see the new URLs in the browser address bar.

Q: Can I get SEO-friendly URLs in Ecwid REST API?

Yes, when getting information about products and categories in an Ecwid store, you can choose the URL format you wish to receive in response. For more details, see the links below:

Q: How can I imrpove SEO if I can’t change the server settings?

SEO-friendly URLs require changes on the server to enable them. If you don’t have access to those settings, please see the Query-based clean URLs above.

Canonical URLs

Canonical URLs on an HTML web page help the website’s search rankings. When a website has multiple pages for a single content, you can specify a single canonical URL for search engines to use when referring to all those pages. This way, you can avoid having duplicate results in the search results thus improving the search engine rankings of your website pages.

This can be helpful, when your store products are located in multiple categories at once – with canonical URL, you will direct potential buyers to that single URL and improve its positions in the search results.

How canonical URLs work

When canonical URLs are enabled on the page with a store, Ecwid will dynamically update the canonical URL of the page the visitor is on.

Store Front Page

For the store front page, Ecwid will always use the canonical URL that is already present on the page before Ecwid store was loaded.

Product and Category pages

If canonical URLs functionality is enabled, Ecwid will dynamically update the canonical URL of that page to match the current product or category that is currently opened. Ecwid will always refer to a unique canonical URL so that the products in multiple categories are addressed in the same way to get the most of the rankings on search engines.

How to enable canonical URLs

Adjusting Ecwid integration code to enable canonical URLs

<script> = || {}; = || {}; = true;

In order to enable canonical URLs functionality for your store pages, you will need to adjust the Ecwid integration code on your website by adding some JavaScript code. If you are using Ecwid starter site as the main store website then no action is required from you – the canonical URLs are already enabled there.

The enable_canonical_urls setting will 'tell’ Ecwid to enable the canonical URLs functionality and it will work as described above. Check out the example on the right.