cancel
Showing results for 
Search instead for 
Did you mean: 

Multi Domain Setup

Multi Domain Setup

Hello good-day,

 

Please can someone help me I have been trying to setup mutli domain website for about 2 weeks with no luck, I have tried everything I can think of.

 

1 Magento2 install - Running 2 domains is what I am trying to achieve. Both my domains are pointing to the server.

 

I am using:

Magento 2.1.7 

Apache 2.4

PHP 7.0

Centos 5

Cpanel / WHM

 

Please can someone help me with a simple step by step guide to making this work.

 

I have done the basics and created the website and changed the domains inside Admin panel. I am just not 100% sure what I need to be doing inside the index.php

 

Any help would be greatly appreciated.

Kind regards

1 REPLY 1

Re: Multi Domain Setup

Hi, this is the best page to look into when it comes to multi-store setup: http://devdocs.magento.com/guides/v2.0/config-guide/multi-site/ms_over.html

 

The MAGE_RUN_CODE needs to be configured as environment variables for each domain. This will tell Magento which website to boot. 

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!