how to remove module name from url in yii

314 Views Asked by At

I try to remove module name from url in YII

http://testdomail.com/demo/user/create 

I want

http://testdomail.com/user/create 

Where demo is my module name. How can I do this?

1

There are 1 best solutions below

1
On

You can define any url in your config by making some changes in your configuration file main.php.

Please have a look here.