anasstouaticoder/magento2-module-multi-store-run

This module will simplify using multiple websites and store views in the same Magento instance.

1.0.10 2024-08-24 13:19 UTC

This package is auto-updated.

Last update: 2024-12-24 14:06:33 UTC


README

Dynamically redirect to subdirectories or new domains for websites and storeviews

Supported Magento Versions Latest Stable Version Composer Downloads Maintained - Yes
``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
  • 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.