issue with subdomain routing in symfony 2.3.2 -


so have 2 sites, 1 @ somethin.site.com, , routed somethin.site.com/prefix/

i'd move /prefix/ bundle somethinelse.site.com, i've changed route set bit:

my_bundle:     resource: "@mybundle/resources/config/routing.yml"     host: %host%     requirements:         _scheme:  https 

the problem when go either url, somethin.site.com, or somethinelse.site.com, receive main site bundle, has prefix of '/'. there i'm missing?

edit: interestingly, moving host , main_host params under requirements got sort of work. problem going wrong subdomain. if switch names or requirements, both subdomains route same bundle again. possibly due having multiple subdomains, ie (staging.sub1.site.com , staging.sub1.site.com)? pastebin of routing.yml

in routing first match wins. main bundle may imported before specific bundle. either move my_bundle import first or set host: %main_host% other imports.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -