urlManager rule not working

I am trying to setup url rule for my categories. I have


I want to transform this to


I can easily achieve it with the following rule:


but when clicked on a category it does not work. It says Error 404

Unable to resolve the request "Catname".

So looks like the framework does not understand that this parameter belongs to category/index route even though I’ve defined it in the config and it is rendering it as per the config.

Am I missing anything?



please post all your rules of urlmanager










so is this a bug or design limitation that we are not suppose to use it that way? I should be able to render http://url/parameter instead of http://url/controller/action/parameter