I want to construct three different frontends (brands of the same company with different styles) sharing the same backend data with yii2 advanced template.
But I need to use direct different domains for the frontends. Urls like these:
- Backend: https://company1.com/backend/ -> maintain products of brand1 and 2
- Frontend1: https://company1.com/… -> show general info
- Frontend2: https://brand1.com/product/… -> show https://company1.com/product/brand1
- Frontend3: https://brand2.com/product/… -> show https://company1.com/product/brand2
The case 1 is the standard but I don´t know how to config the routing and where in the cases 2 and 3 with the direct domains.
How can I do this?.