[Solved] Mod_rewrite for static page

Hi,

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>’,

‘policy’=>’/site/page/view/policy’,

For some reason its not working.

Does anybody have an idea?

The "user"-Rule is working.

THX

Andreas

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:


'<view:(policy|impressum)>'=>'site/page',