How to rewrite url module

Hello!

I’ve forum module that contains forum controller.

if I want access to any action the url is: myhost/forum/forum/action

How can I do to turn that URL like this one? myhost/forum/action

In summary:

<module>/<controller>/<action> to <module>/<action>, becouse the module and controller name are same.

Hi,

did you find this documentation http://www.yiiframework.com/doc/guide/1.1/en/topics.url? What about to hardcode the route? Or maybe you could write your own Custom URL Rule Classes.

If this does not work than please describe your problem in a more detailed way providing your current rules and configurations of Yii and the RewriteModule form apache.

Best regards,

Danny

Try create route like:




.. routes...

'forum/<action:\w+>'=>'forum/forum/<action>',