Warning: You are browsing the documentation for Symfony 2.3, which is no longer maintained.
Read the updated version of this page for Symfony 5.3 (the current stable version).
Recipes about Routing
The Symfony Cookbook is a continuously growing collection of specific recipes that explain how to correctly solve the most recurrent problems that Symfony developers face in their day to day work.
- How to Force Routes to always Use HTTPS or HTTP
- How to Allow a “/” Character in a Route Parameter
- How to Configure a Redirect without a custom Controller
- How to Use HTTP Methods beyond GET and POST in Routes
- How to Use Service Container Parameters in your Routes
- How to Create a custom Route Loader
- Redirect URLs with a Trailing Slash
- How to Pass Extra Information from a Route to a Controller
- Looking up Routes from a Database: Symfony CMF DynamicRouter
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.