Pergunta

I am currently developing my website app and I need to test it on live server.

On local machine it was working well however on live server it does not work.

Here is my problem description:

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.

can anybody tell me what is wrong..I am not expert with live server so I am not good in terminologies I can only describe what is happening.

I am not sure if this is worth mentioning but I am using the yii urlManager

with this settings

'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
        ),

and an htaccess on root folder..

server is : LAMP

Thanks alot for your help.. Everyone is appreciated.

Foi útil?

Solução

I had the same problem, my controller name was UserManagementController, it worked just fine on Windows, but when I moved it to Linux, I received the error "Unable to resolve the request 'usermanagement'. ".

The problem was that Linux is case-sensitive. I changed the controller name from UserManagementController to UsermanagementController and it worked.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top