I have a simple redirectt in my routing.yml file:
products_in_categories:
path: /{slug}
defaults: { _controller: MpShopBundle:Category:show }
redirect_category:
path: /112-redirect-this
defaults:
_controller: MpShopBundle:Category:show
route: products_in_categories
slug: to-this
permanent: true
So when I go to localhost/web/app_dev.php/112-redirect-this
it should do a 301 redirect and change the url... It load the pages successfully, but the url is not changed. It shows:
localhost/web/app_dev.php/112-redirect-this
when it should show:
localhost/web/app_dev.php/to-this
Am I doing something wrong?