Let's say I've got a website with multiple (sub)domains:
- acme.com (USA)
- acme.nl (Netherlands)
- be.acme.eu (Belgium)
- de.acme.eu (Germany)
- fr.acme.eu (France)
- etc...
I thought this should be very simple to configure, so I made this routing.yml:
usa: host: "acme.com" resource: "@WebsiteBundle/Controller/" type: annotation defaults: country: "en" netherlands: host: "acme.nl" resource: "@WebsiteBundle/Controller/" type: annotation defaults: country: "nl" europe: host: "{country}.acme.eu" resource: "@WebsiteBundle/Controller/" type: annotation But if I run router:debug, only the last route (in this case {country}.acme.eu) shows up. If I change to order, the last option shows up.
How can I use different (sub)domains for all my countries?