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:
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.
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.