Last active
August 29, 2015 14:02
-
-
Save bocharsky-bw/375c0c816598a029f2f1 to your computer and use it in GitHub Desktop.
The multilingual router example with excluding default locale from URI for Symfony Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
home_redirect: | |
host: "%domain%" | |
pattern: /%locale%/ | |
defaults: | |
_controller: FrameworkBundle:Redirect:urlRedirect | |
path: / | |
permanent: false | |
home_locale: | |
host: "%domain%" | |
pattern: /{_locale}/ | |
defaults: { _controller: BWMainBundle:Main:index } | |
home: | |
host: "%domain%" | |
pattern: / | |
defaults: { _controller: BWMainBundle:Main:index, _locale: "%locale%" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment