Codeigniter no input file specified error
Your uri_protocol
needs to be set to something - at least set it to auto.
The error you are getting is because PHP runs as CGI which means you need to pass the URL rewrite to index.php?/$1
instead (note the question mark).
Godaddy hosting, it seems fixed on.htaccess
, myself it is working by changing:
RewriteRule ^(.*)$ index.php/$1 [L]
to
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
Your $config['uri_protocol']
should not be empty. The default is AUTO
, passing in an empty string will break the core URI class, which is used to route your requests through the Router class.
/*|--------------------------------------------------------------------------| URI PROTOCOL|--------------------------------------------------------------------------|| This item determines which server global should be used to retrieve the| URI string. The default setting of 'AUTO' works for most servers.| If your links do not seem to work, try one of the other delicious flavors:|| 'AUTO' Default - auto detects| 'PATH_INFO' Uses the PATH_INFO| 'QUERY_STRING' Uses the QUERY_STRING| 'REQUEST_URI' Uses the REQUEST_URI| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO|*/$config['uri_protocol'] = 'AUTO';
As the comments say: "If your links do not seem to work, try one of the other delicious flavors".
Empty string is not one of those flavors, it would end up trying to read from $_SERVER['']
, which is normally going to be empty.