A little hard to descripe my situation, I am trying.
Assume that I have many domain, like www.parent.com, www.child1.com, www.child2.com…
One parent and many many child, the domain is totally different, call it parent or child just because their functional differences set by human.
assume I had a laminas mvc project.
parent.com reflect to default module application. and home page in module application
child1.com reflect to module child1. and home page in module child1
child2.com reflect to module child2. and home page in module child2
above requirement can be fixed by laminas’s hostname router.
The following request I can not solve.
child domain’s every path can be visited by parent domain.
reflection like the following:
child1’s index home page visited the same page with parent domain
www.child1.com → www.parent.com/child1
www.child1.com/about → www.parent.com/child1/about
www.child1.com/game/list → www.parent.com/child1/game/list
besides, domain child1.com can not reach other modulce content except child1 module.
other child domain should keep the same rule. each child domain can only access it’s own module content.
I don’t know how to fulfil the above request.
anybody can give some advises?