I would know, does it is possible to divide Symfony 4 application for 2 domains. I would see it as :
routes.yaml
index:
path: domain1.com/
controller: App\Controller\ServiceController::indexAction
results:
path: domain1.com/results
controller: App\Controller\ServiceController::resultsAction
admin:
path: domain2.com/admin
controller: App\Controller\AdminController::indexAction
I would limit routes for domain1 and others available only from domain2. I know I can just part my app for 2 new, I can try with apache hosts config, but I think easiest and fastest is my idea. Ah. I don't speak about subdomains.
Aucun commentaire:
Enregistrer un commentaire