2 domains to 1 directory root

Discussion in 'Tips/Tricks/Mods' started by JC_66, Sep 18, 2017.

  1. JC_66

    JC_66 New Member

    Hi,

    Im user of prestashop with mulisites activated. I have 1 domain with main site at /var/www/clients/client1/web1 and an other domain target to
    /var/www/clients/client1/web2, How we can modify for second domain target to web1 ?

    Many thanks, JC
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    1) Delete the website web2.
    2) Add the second domain as aliasdomain again and not as website.
     
  3. JC_66

    JC_66 New Member

    Many thanks Till,

    I tried :

    Domain: domain2
    Parent : domain1
    Type of redirection : no redirection
    Path:
    Alias: *.
    Seo Redirect: no redirection
    Active : Yes

    When i try to reach domain2 i got apache default webpage instead of blank website 2, it dont display website1.

    Br, JC
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ensure that both domains point to the same IP address (the one of domain1) and wait 1-2minutes until the changes are written to disk.
     
  5. JC_66

    JC_66 New Member

    Yes its all good :) What about email address for second domain, it will target to domain1 too ?
     
  6. HSorgYves

    HSorgYves Active Member

    If you setup domain2 as e-mail alias for domain1 then yes!
     

Share This Page