2

I'm working on a site and I need to customize site URL in such a manner that it will work like <username>/<controller>/<action> after login the user.

I have tried it with followings rules in Yii 2.0 configuration file:-

'rules' => [                
                '<username>/<controller:(site|comment)>/<id:\d+>/<action:(index|home|update|delete)>' => '<controller>/<action>',
            ],

But it shows me #404 error. Any Helps?

Deepak Jangra
  • 129
  • 1
  • 9

0 Answers0