The main windows - linux problem is in the case sensitivity… but if that would be the problem you would get an error of the kind "file X not found"…
Your error is of different kind… so as Da:sourcer pointed maybe you forgot to upload the .htaccess file or if you did that… then mod_rewrite is not enabled on that server… in that case you need to check that with the hosting support.
Please make sure you’ve set up .htaccess file correctly to hide index.php. Description in docs
And I don’t see relevant redirect rule in your config, to redirect home/index to site/index, please re-read Url Management topic.
Also, if you just need HomeController.php instead of SiteController.php in your application, wouldn’t it be easier just to rename a class? Additional redirects will give you a bit of additional processing. - Just a small notice, don’t pay an attention to it if it’s not a case.
@yugene please read the first post… he does not need to change SiteController with HomeControlle, or redirect anything… as he pointed in the post just before yours…
@mdomba…thanks a lot…you beauty…it has worked…I am feeling so silly. I had it named homeController. I have changed/learned so many things in the process though…
@yugene thanks…I will try your index.php hide pointer as well
I realize that this is an old thread but I have a similar problem to the one experienced by OP and I’m running out of time.
The following URL part works as expected on my Windows WAMP machine (running using AMPPS), but fails on the Linux production host:
index.php?r=customchocolates/index
I get the following error:
Unable to resolve the request "customchocolates/index"
On Windows, I followed the naming convention of CustomChocolates in all the relevant files. However, after searching on-line, I changed the following files to:
controller: customChocolatesController.php
model: customChocolates.php
views dir: customChocolates
I’ve also updated all the class names to the new name, but I’m still getting the error.
public function actionIndex()
{
$dataProvider=new CActiveDataProvider('CustomChocolates');
$this->render('index',array(
'dataProvider'=>$dataProvider,
));
}