CodeIgniter – No input file selected on Godaddy,.htaccess

I recently launched a new website on GoDaddy hosting. The website required mod_rewrite for SEO-friendly URLs. The website was Developed using CodeIgniter (PHP Framework).

The web application worked very well in development environment but it generated the error “No Input File Specified” when I uploaded it to GoDaddy Web Hosting.

htaccess Before

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?/$1 [L]

htaccess After

Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]

After Changing htaccess also, if you encounter the same problem try below things , append ? to index_page config value, and change URI protocol to QUERY_STRING.

$config['index_page'] = ‘’; 
$config['uri_protocol'] = ‘QUERY_STRING’;

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems. Protection Status