Salman Aslam
Salman Aslam

Reputation: 781

Why Codeigniter Gives 404 Page not found error on server?

I have developed a small survey application with codeigniter. 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'] = ""; to $config['index_page'] = "index.php?";

2) for $config['uri_protocol'] , i have tried each possible value.

Can you please suggest me some solutions?

Resolved 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.

Upvotes: 1

Views: 6061

Answers (1)

Joseph Silber
Joseph Silber

Reputation: 219920

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

Upvotes: 2

Related Questions