Andreas123
(619forlife)
1
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’
dckurushin
(Diavolonok)
3
you can try '<action:(policy)> … but what yoou wrote also should work… maybe as mantioned it is some / aka slash issue
Andreas123
(619forlife)
4
ok I solved it,
it has to be:
'<view:(policy|impressum)>'=>'site/page',