服务器问题控制器操作总是404未找到


Yii: Server issues controller action always 404 not found

我目前正在开发我的网站应用程序,我需要在实时服务器上测试它。

在本地机器上运行良好,但在实时服务器上不工作。

我的问题描述如下:

When I access the domain root folder "mydomain.com" it is working. 
It displays the
webpage index. But when I try to access site/action it 
gives me 404 not found. Same thing happens for other controller action.

谁能告诉我出了什么问题,我不是实时服务器专家,所以我不擅长术语,我只能描述发生了什么。

我不确定这是否值得一提,但我正在使用yii urlManager

设置

'urlManager'=>array(
            'urlFormat'=>'path',
            'rules'=>array(
                '<action:'w+>' => 'site/<action>',
                '<controller:'w+>/<id:'d+>'=>'<controller>/view',
                '<controller:'w+>/<action:'w+>/<id:'d+>'=>'<controller>/<action>',
                '<controller:'w+>/<action:'w+>'=>'<controller>/<action>',
            ),
            'showScriptName'=>false
        ),

和一个htaccess在根目录..

server is: LAMP

非常感谢你的帮助。

我有同样的问题,我的控制器名称是UserManagementController,它在Windows上工作得很好,但是当我将其移动到Linux时,我收到错误"无法解决请求'usermanagement'。"。

问题是Linux区分大小写。我将控制器名称从UserManagementController更改为UserManagementController,它工作了