Yii url rewrites

I have static pages to rewrite by changing urlManager like this. 'login'=>'user/login'

which allows you to www.site.com/user/login.phpdisplay howwww.site.com/login.php

The goal is to remove user/from everything that is in the user directory.

+3
source share
1 answer

To fill in the blanks here ... solution

'<_a:(login|index|update|etc)>' => 'user/<_a>',
+1
source

All Articles