Friendly And Dynamics Url

Good afternoon friends programmers,

I’m developing a system of e-commerce and I am friendly urls deploy the system.

For example … on product details page, I want the url to stay well:

Http://www.meusite.com.br/category/subcategory1/subcategory2/name-of-product.html

In case of a navigation category url stay as follows:

Http://www.meusite.com.br/category1/

Anyone have any idea how I can do this?

Thank you in advance!

NOTE: Do not let me make the controller name in the url. Eg

Http://www.meusite.com.br/site/category1/

First of all, read the docs.

Then create appropriate regexp for url parsing, and write required rules.

The only catch here is to separate controllers from the categories.

It can be done by listing them in the first rule, for example ‘<controller:(site|news|page|company)>’