RapidWeaver, Ecwid, clean urls and page indexing

We have a https site running on Rapidweaver 8 which has an embedded ECWID store with about two hundred products on it. Generally works fine but pages are not being indexed by Google.

We have two main problems:

  1. though the front Rapidweaver pages are found and indexed on google the product (ECWID) pages are not. Despite following all the ECWID coding remedies it still fails to index on Google.

our store is here: https://www.medlarpress.com/code/bookshop.html

2.Also having great difficulty in getting clean urls

Ecwid gave us this (on our bookshop page in rapidweaver):

<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>

.htaccess file on RapidWeaver only has the following code

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

I must be doing something wrong but don’t know what. I’m not very code savvy so simple please!

thanks
Jon

Not sure if I understand what you’re saying. What makes you think Google isn’t indexing the some pages?

Do you have an example of a page that you don’t think Google has been indexing?

I just checked one of the books https://www.medlarpress.com/code/bookshop.html?store-page=Hardy-Anglers-Gadgets-p19289077 and Google has it in its cache (from June 17th). That would mean it’s been indexed.

I’m not an expert on Ecwid, but I think there is a two-step process for doing clean URL’s. That Script looks differnet than the samples code from Ecwid.

  • Ste sample code assumes the store is at shop.html
  • you would need to add the htaccess rule
RewriteRule ^shop/.*$ shop.html

And the Javascript from the sample looks like this:

   <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>
    
    <... Here goes the store integration code ...>

On both you would need to thange the shop's to the URL you are using.