CodeIgniter app shows 404 when moved to production CodeIgniter app shows 404 when moved to production codeigniter codeigniter

CodeIgniter app shows 404 when moved to production


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. :(


Double-check your Apache configuration. For example, if you're using mod_rewrite to get rid of index.php from the URLs on your local machine, then make sure Apache is configured to do the same in production.


Permissions issue? If it can't see the file at all (404), then Apache might not have access.