Today I found a problem working with CodeIgniter. When I tried to check my current in live site it says “No Input file specified“. I googled it and founded that the problem was not with CI. It occurs when website in PHP scripts runs in APACHE CGI server. If there is no file in requested URL Apcache raises this error, that is if the pages are generated dynamically like Joomla/CI etc. There are lots of solution in the net.
The solution I found for CI is described here.
Open CI’s config.php file from application folder. Configure these two lines
$config[‘index_page’] = “index.php?”; //remeber index.php + ?
$config[‘uri_protocol’] = “AUTO”;
Now the change in your URL will be like this
Please inform me if there are better solution instead of .htaccess. Wish it will help you who face this kind of problem with CodeIgniter.