Last active
May 10, 2016 08:53
-
-
Save 0-Sony/5dab3c21b6fa58413f7518699fd3e626 to your computer and use it in GitHub Desktop.
Htaccess configuration for a multi website
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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