Web Designing, Web Development, Website Design, Website Development, SEO

0091 98233 72069

COGS: CUSTOMISED, OPTIMISED, GENERALISED WEB DESIGN & WEB DEVELOPMENT SOLUTIONS

Codeigniter – no input file specified

On some servers codeignitor generates error message “no input file specified”. It is related with .htaccess file. A small change need to be done in .htaccess rewrite engine rules.

Only add ? after index.php as specified below, marked in red colour. Default htaccess file do not have that question mark. Add it and every thing will work fine

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