Salman Aslam Salman Aslam - 3 months ago 9
PHP Question

Why Codeignitor Gives 404 Page not found error on server?

I have developed a small survey application with codeignitor. Which works fine on my local machine.
But when i uploaded and configured it on server it is giving me Codeignitor 404 page not found error. I have tried it on two server. One of windows and other of LINUX. But no charm.
let me tell you what i have tried so far.

1) Changed

$config['index_page'] = "";
$config['index_page'] = "index.php?";

2) for
, i have tried each possible value.

Can you please suggest me some solutions?

Okey, stupid, stupid me. I got it.
I was to make controller name lowercase. Like from Home.php to home.php :)
It might help someone! Thanks for your suggestions mate.


You'll also have to set the $config['base_url'] to your domain name.