anasstouaticoder / magento2-module-multi-store-run
This module will simplify using multiple websites and store views in the same Magento instance.
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
README
Dynamically redirect to subdirectories or new domains for websites and storeviews
``anasstouaticoder/magento2-module-multi-store-run``
Main Functionalities
Installation
* = in production please use the --keep-generated
option
Type 1: Zip file
- Unzip the zip file in
app/code/AnassTouatiCoder
- Enable the module by running
php bin/magento module:enable AnassTouatiCoder_MultiStoreRun
- Apply database updates by running
php bin/magento setup:upgrade
- Flush the cache by running
php bin/magento cache:flush
- Do not forget to flush cdn cache or varnish if exist
Type 2: Composer
- Make the module available in a composer repository for example:
- private repository
repo.magento.com
- public repository
packagist.org
- public github repository as vcs
- private repository
- Add the composer repository to the configuration by running
composer config repositories.repo.magento.com composer https://repo.magento.com/
- Install the module composer by running
composer require anasstouaticoder/magento2-module-multi-store-run
- enable the module by running
php bin/magento module:enable AnassTouatiCoder_MultiStoreRun
- apply database updates by running
php bin/magento setup:upgrade
- Flush the cache by running
php bin/magento cache:flush
- Do not forget to flush cdn cache or varnish if exist
Specifications
This module make creating subdirectories or new domains for websites and storeveiws easier, when creating new website or storeview you do not need to create new subdirectory and new index.php file in /pub, the module detect the target website or storeview by adding its MAGE_RUN_CODE MAGE_RUN_TYPE in server variable then you will be redirected.