The ability to easily edit the structure and layout of our project files is a one of the key features that we offer. Each of you adapt Foundation Box projects to your business needs or your own clients needs. If you are familiar with Foundation 6 stacks you can edit each detail of your project in no time. Of course some edits require more time and attention than others, an example of this is if you need to change the page structure of the website of the folder name of the store page.
if you need to change the directory location of the main store, or even just renaming the store folder name, there are a few settings you need to edit to make it all work correctly.
How to edit the my e-commerce store location in goEcwid?
You would think that changing the location of your Ecwid store is a simple drag and drop, or renaming the folder. This is usually the situation with Rapidweaver but in this case there are a few moving parts you have to keep in consideration.
1. Edit the name or location of the store page as you would normally do with any other page.
2. In RW open the Ecwid SEO friendly URLs HTML stack located almost at the top of your Store page
3. Edit the part of the code inside the HTML stack with the new correct path of your store as indicated in the picture.
Example: If you renamed your store page to /shop in that setting you will enter /shop
4. Edit the .htaccess rule you find in the dashboard of your admin area in the same way you just edited the SEO friendly code.
Example: the default .htaccess rule is,
# Ecwid SEO-friendly URLs
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^store/.*$ /store/index.php
If you renamed your store page to /shop your .htaccess rule should look like this
# Ecwid SEO-friendly URLs
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^shop/.*$ /shop/index.php
Save and publish your htaccess file.
5. Make sure that you setup correctly the store URL inside your Ecwid Account.
Example: If you renamed your store page to /shop, the correct location of your store is https://yourdomain.com/shop/