How to rewrite url module


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.


did you find this documentation 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,


Try create route like:

.. routes...