twigman08 twigman08 - 1 year ago 56
PHP Question

CodeIgniter: 404 Page Not Found on Live Server

I have been developing a small web application with CodeIgniter. After testing it out locally I went to put it on my web server to allow a couple other people test out some features. While navigating to the site I get: -

404 Page Not Found error page

When viewing it in my local machine everything loads up and runs perfectly.

This is what I uploaded to the

application directory
system directory
assets directory (my assets for the site)

All of those are in the
directory. Like I said, it does give me CodeIgniters 404 error page, so I do know it is at least seeing CodeIgniter. I also tried changing the
, in the
, to my URL. Same error when changing that or leaving it blank.
I checked my routes, and all those seem correct. Everything also loads up just fine when navigating to it on my local machine.

I also am not using a
file at this time

Any suggestions on what I should try?

Thanks a lot!

Answer Source

You are using MVC with OOPS Concept. So there are some certain rules.

1) Your class name (ie: controller name) should be start with capital Letter.

e.g.: your controller name is 'icecream'. that should be 'Icecream'

In localhost it might not be compulsory, but in server it will check all these rules, else it can't detect the right class name.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download