How To Remove Action From Url Bar ?

I’m using the urlManager and I can not figure out a way to get rid of “action”, replacing it by my pre-defined default action

Let me explain:

I want URL’s that look like these:



Which needs to be translated into these:



So I thought this would work:


<module:\w+>/<controller:\w+>/’ => ‘<module>/<controller>/show’,


but this leads to the following error:

The system is unable to find the requested action "id".


The system is unable to find the requested action "aaa".

It always grabs my first parameter, and acts as if it’s an action, although I believe I’ve explicitly asked to use “show” as the action all the time, as you can see in the right part of my rule.

I tried many combinations, but none of them worked.

Does someone here knows what’s going wrong or how to solve this?

[color="#2E8B57"]/* moved from "Miscellaneous" to "General Discussion for Yii 1.1.x" */[/color]


Have you tried like this:

<module:\w+>/<controller:\w+>/*' => '<module>/<controller>/show',

I’m referring to

This works, thanks!

I never tried the "/*" and that seems to do the trick!