Reputation: 415
I have created a simple application in YII2 and it is working fine at my local machine but giving me Not Found (#404) "Page Not Found" error on live server. Local URL: http://localhost:8080/basicapp/web/index.php?r=adminPanel%2Fstatemaster%2Findex
Live URL: http://XXXX.com/web/index.php?r=adminPanel%2Fstatemaster%2Findex
I am not using pretty URL, and didn't change in web.php. just added module info in the file. Code Snippet:
'modules' => [
'adminpanel' => [
'class' => 'app\admin\adminpanel',
],
'studentPanel' => [
'class' => 'app\Student\dashboard',
],
],
I can provide detial, whatever is required.
Upvotes: 0
Views: 1137
Reputation: 415
If anyone have similar problem, Just change your naming of models and controllers. In my problem, model and controller names were like StateMasterController etc but it should be StatemasterController, mind the M. It works for me, may be this can help you.
Thanks
Upvotes: 1