Coding starts here
Home / Blog

Solved: No input file specified issue in Codeigniter

Solved: No input file specified issue in Codeigniter

Sometimes when you move your local/staging Codeigniter project to live/client server, make some changes in code in production stage, then you find “White screen of death” in Codeigniter. A message popup showing “No input file specified”. Then you google the web and found some code in stackoverflow site to make some changes in php.ini. But what if your production server is hosted on shared server?

I have also faced this issue and could not found very informative solution to solve this problem. After some r&d, I found a very nice solution which may work on Godaddy, IIS cpanel or apache, nginx. Just change some code in your root htaccess file. Just append a question mark (marked as red) in your htaccess file.

<IfModule mod_rewrite.c>
  Options +FollowSymLinks
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L]
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x