Skip to content

Instantly share code, notes, and snippets.

@0-Sony
Last active May 10, 2016 08:53
Show Gist options
  • Select an option

  • Save 0-Sony/5dab3c21b6fa58413f7518699fd3e626 to your computer and use it in GitHub Desktop.

Select an option

Save 0-Sony/5dab3c21b6fa58413f7518699fd3e626 to your computer and use it in GitHub Desktop.
Htaccess configuration for a multi website
#Configuration
SetEnvIf Host ^mydomain\.com MAGE_RUN_CODE=base
SetEnvIf Host ^mydomain\.com MAGE_RUN_TYPE=website
SetEnvIf Host ^foo\.mydomain\.com MAGE_RUN_CODE=mycustomwebsitecode1
SetEnvIf Host ^foo\.mydomain\.com MAGE_RUN_TYPE=website
SetEnvIf Host ^mydomain2\.com MAGE_RUN_CODE=mycustomwebsitecode2
SetEnvIf Host ^mydomain2\.com MAGE_RUN_TYPE=website
SetEnvIf Host ^mydomain3\.com MAGE_RUN_CODE=mycustomwebsitecode2
SetEnvIf Host ^mydomain3\.com MAGE_RUN_TYPE=website
## don't forget to change unsecure/secure url in BO.
## System > Configuration > General > Web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment