Skip to content

CodeIgniter – No input file selected on Godaddy,.htaccess

Last updated on December 7, 2014

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’;
0 0 votes
Article Rating
Subscribe
Notify of
guest

4 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments