dynamic Friendly URL

Hi!

I want this url structure: www.site.com/ferrari/f40, or www.site.com/ford/fiesta to view the product page. Or www.site.com/ferrari to view the category page with all products.

How can I do this? I think that www.site.com/brand/ferrari and www.site.com/car/f40 its easier but I don’t know…

Thanks!

This may help you:

http://www.yiiframework.com/doc/guide/1.1/en/topics.url#user-friendly-urls

http://www.yiiframework.com/wiki/53/using-search-engine-and-user-friendly-urls

Cheers

maybe you need this code demo

http://yiiblog.info/blog/2011/03/use-urlmanager-to-format-your-url/

in Yii url control is just like a piece of cake.