Routing

A route is a map from a URL pattern to a controller.

When a request is made to your application, it contains an address to the exact "resource" that the client is requesting. This address is called the URL, (or URI), and could be /contact, /blog/read-me, or anything else. Take the following HTTP request for example: GET /blog/my-blog-post

The goal of the Symfony2 routing system is to parse this URL and determine which controller should be executed.

See the Routing chapter.