Symfony Logo

Symfony is one of the coolest framework for web application development in php I have ever used. We can make a blog application in less than an hour, such a simple the framework it is.

Symfony is purely MVC based framework. We can build application very fast using this framework, as a lot of configuration files are there to manage and configure web application properties. Only Symfony developers need to care about this topic. The modules in the symfony application can have different actions. Lets say a module ‘user’ with action ‘login’ carry out the user login of a client session. Then the applications login session’s URL may be something like this This can’t be simple recognized by search engines. So rewriting those URL to make sense to search engines. Now i am going to discuss how it can be achieved simply by editing a configuration file, routing.yml.

Simply edit routing .yml in ROOT_DIR/apps/application name/config folder.

Add a conf like below


This will routes the request from to But it is happening only on the application server so the search engines are not aware about this internal routing.

Click here to submit your review.

Submit your review
* Required Field

Tags: , , ,


Sanil S Founding member of MobMe Wireless Pvt Ltd, Ayruz Web Holdings

One comment on “Routing mechanism in symfony

  1. Php Developer India on said:

    anybody here know of a good site to find more info on Php Developer India? I’ve got this site bookmarked and im gonna keep checking it out, but i still would like to find a site that covers Php Developer India a little more thoroughly..thanks

Leave a Reply

Your email address will not be published. Required fields are marked *


+ two = 10

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>