Created
November 27, 2012 12:28
-
-
Save serapheem/4153979 to your computer and use it in GitHub Desktop.
Symfony2 - Redirect one route to another from routing.yml
This file contains hidden or 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
SomeRoute: | |
pattern: /someroute | |
defaults: | |
_controller: SomeBundle:Controller:action | |
AnotherRoute: | |
pattern: /anotherroute | |
defaults: | |
_controller: FrameworkBundle:Redirect:redirect | |
route: SomeRoute | |
permanent: true # this is for 301 | |
page: 5 # you can pass additional attributes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment