Joeri Verdeyen bio photo

Joeri Verdeyen

Web-engineer, cyclist, Nespresso lover, Strava pusher.

Twitter LinkedIn Instagram Github Stackoverflow Last.fm Strava

Symfony2 catch all route

In the following example the routing component sends all request to my IndexController:catchAll action.

catch_all:
    path:     /{catchall}
    defaults:
        _controller: YourProjectBundle:Index:catchAll
    requirements:
        catchall: ".+"

Thanks for reading

Feel free to leave a comment if you have remarks or like this post