This has been asked before, but still not solved.
Have anyone figure out how to setup ISPConfig 3.x with REDIRECT rules, to show different shops in same installation?
I want
www.myshop.com to redirect to www.myshop.com/shop/
www.myshop2.com to redirect to www.myshop2.com/shop2/
Solved! Go to Solution.
Solved
You only have to add
SetEnv MAGE_RUN_CODE "xxxxxxx"
SetEnv MAGE_RUN_TYPE "website"
/etc/apache2/sites-available/xxxxxxx.no.vhost
Under the server information
<VirtualHost xxxxxxx:80>
DocumentRoot /var/www/xxxxxxx.no/web
ServerName xxxxxxx.no
ServerAlias www.xxxxxxx.no
ServerAdmin webmaster@xxxxxxx.no
SetEnv MAGE_RUN_CODE "xxxxxxx"
SetEnv MAGE_RUN_TYPE "website"
</VirtualHost>
And no placeholder in Stores > Configuration > General > Web
Still testing without result.
There is 3 codes to use in www.mysite.com/code/
Web Site
Store
Store View
Which is the right one?
I'm a bit confused..
And - is this right?
Where do I find the file to edit a Vhost?
/var/www/....?
<VirtualHost *:80> ServerName mysite.mg DocumentRoot /var/www/html/magento2/pub/ </VirtualHost> <VirtualHost *:80> ServerName french.mysite.mg DocumentRoot /var/www/html/magento2/pub/ SetEnv MAGE_RUN_CODE "french" SetEnv MAGE_RUN_TYPE "website" </VirtualHost> <VirtualHost *:80> ServerName german.mysite.mg DocumentRoot /var/www/html/magento2/pub/ SetEnv MAGE_RUN_CODE "german" SetEnv MAGE_RUN_TYPE "website" </VirtualHost>
Solved
You only have to add
SetEnv MAGE_RUN_CODE "xxxxxxx"
SetEnv MAGE_RUN_TYPE "website"
/etc/apache2/sites-available/xxxxxxx.no.vhost
Under the server information
<VirtualHost xxxxxxx:80>
DocumentRoot /var/www/xxxxxxx.no/web
ServerName xxxxxxx.no
ServerAlias www.xxxxxxx.no
ServerAdmin webmaster@xxxxxxx.no
SetEnv MAGE_RUN_CODE "xxxxxxx"
SetEnv MAGE_RUN_TYPE "website"
</VirtualHost>
And no placeholder in Stores > Configuration > General > Web