Yii - Hiding module name in URL

后端 未结 2 1870
闹比i
闹比i 2020-12-12 04:47

My present URL structure is as below:

http://www.mydomain.com/module/controller/action

I need to hide the module section of the URL. Is there any way this ca

2条回答
  •  时光说笑
    2020-12-12 05:50

    Yes, you can define any url rules in your config.

    Your url rule may look something like this:

    '/' => 'module//',
    

提交回复
热议问题