Codeigniter website showing error 404 on Google Virtual Instant Live Server

无人久伴 提交于 2020-04-18 12:33:46

问题


When I go open up my Codeigniter website on my localhost using Wamp and XAMPP, both works. But when I move it to Ubuntu on Google Cloud, it only works for the first page, afterward, it shows the error when going to another page.

I'm using:

Codeigniter ver 3 Apache2 php7.3

Does anyone know what might have caused this?

Other Pages


回答1:


It would be ideal if you check first the class name and the record name that both should be title case (start with a capital letter).

So if the class name is 'controller.php', the file name needs to be 'Controller.php', otherwise, CodeIgniter will throw a 404 error.

In localhost it probably won't be obligatory, yet in server it will check every one of these standards, else it can't distinguish the correct class name.



来源:https://stackoverflow.com/questions/60387536/codeigniter-website-showing-error-404-on-google-virtual-instant-live-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!