I want have this urls:
example.com
example.com/category
example.com/category/name
My routes:
default_page:
path: /{name}
defaults: { _controller: CatalogWebBundle:Default:index }
default_page:
path: /
defaults: { _controller: CatalogWebBundle:Default:index }
default_page:
path: /{name}/{category}
defaults: { _controller: CatalogWebBundle:Default:index }
Work properly only
example.com/category
What is wrong with my routes ?
Error is:
No route found for "GET /category/name"
No route found for "GET /"