experius / Magento2-Module-Multiple-Website-Store-Code-Url

14 stars 8 forks source link

Multiple website store code url

This module enabled you to use the same store_code multiple times for different websites in the url by removing the website_code from the store_code before adding it to the url. So "example.com/website_en/", will become "example.com/en/".

The module has configuration to enable/disable it in the web/url section.

Important: the store code should include the website code otherwise it won't do anything.

Configuration

In order for direct links to work, you must set base urls on website level.

In "Stores -> Configuration -> General -> Web -> Base Urls", "web/unsecure/base_url" or "web/secure/base_url" or both must be filled. The values must be present at website level.

Changelog: