cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple domain / language setup with ISPconfig3 and REDIRECT

SOLVED

Multiple domain / language setup with ISPconfig3 and REDIRECT

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/

ISPConfig.jpg

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Multiple domain / language setup with ISPconfig3 and REDIRECT

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

View solution in original post

3 REPLIES 3

Re: Multiple domain / language setup with ISPconfig3 and REDIRECT

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?

Configuration___Settings___Stores___Magento_Admin.jpg

Skjermbilde 2018-11-15 kl. 22.08.10.png

Re: Multiple domain / language setup with ISPconfig3 and REDIRECT

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>

Re: Multiple domain / language setup with ISPconfig3 and REDIRECT

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