I'm using hostname routing dependent on subdomain.
What I want to do is have two separate routings. When I'm running off www.example.com, then it uses one routing file, and if any other subdomain such as subdomain1.example.com or subdomain2.examples (etc etc), then it runs off another routing file.
My routing is as follows (yml):
route_www:
resource: "@AcmeBundle/Resources/config/routing/www/routing.yml"
host: www.%base_host%
route_sites:
resource: "@AcmeBundle/Resources/config/routing/sites/routing.yml"
Now this works to a point. I am using FOSUserBundle and I have all these routes in the route_sites, but www.example.com/register for example is still viewable as www is still valid for route_sites. Is there anyway possibly using regex, to prevent subdomain www from using the route_sites route.
Hope someone can help