[Solved] Mod_rewrite for static page


I want to rewrite the URL http://mysite.com/site/page/view/policy to http://www.mySite.com/policy

In my main.php URLManager I have the following rules applied:

‘’ => ‘site/index’,

‘<action:(login|logout)>’ => ‘user/<action>’,


For some reason its not working.

Does anybody have an idea?

The "user"-Rule is working.



It may be the forward slash at the beginning of ‘/site/page/view/policy’

you can try '<action:(policy)> … but what yoou wrote also should work… maybe as mantioned it is some / aka slash issue

ok I solved it,

it has to be: