50% discount in conference replays
2020 and 2021 events
In English, French, German, Polish and Spanish

Redirect URLs with a Trailing Slash

Edit this page

Warning: You are browsing the documentation for Symfony 4.2, which is no longer maintained.

Read the updated version of this page for Symfony 6.0 (the current stable version).

Redirect URLs with a Trailing Slash


In Symfony 4.1 the automatic URL redirection was improved as explained in Routing. That's why you no longer need to do that redirection yourself and this article has been removed because it's no longer needed.

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.