Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CodeIgniter app shows 404 when moved to production

I've finished developing an app using CodeIgniter in my local machine, and moved it to the production server (live site) yesterday.

My problem is that when I load the site, it immediately shows me a "page not found" error (404). I'm 100% sure this has nothing to do with the server itself, since a clean CodeIgniter installation works perfectly fine.

I've changed the settings in config.php and database.php to reflect the new environment so it's supposed to work. The log file isn't showing anything helpful (only that it can't find index_php after loading the URI library).

Any idea how I can troubleshoot this?

Your help is so much appreciated.

like image 566
KeyStroke Avatar asked Feb 26 '23 01:02

KeyStroke


1 Answers

Just found the issue. My default controller's file name started with a capital letter. I changed it to small (e.g.: 'example.php' instead of 'Example.php') and it worked.

I've wasted so much time on such a silly error. :(

like image 146
KeyStroke Avatar answered Mar 07 '23 12:03

KeyStroke