anasstouaticoder/magento2-module-multi-store-run

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

1.0.9 2023-06-23 19:08 UTC

This package is auto-updated.

Last update: 2024-05-23 21:11:12 UTC


README

Dynamically redirect to subdirectories or new domains for websites and storeviews

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