CodeIgniter – No input file specified error – .htaccess – Godaddy

CodeIgniter sometimes shows No input file specified error when switching to a new page, Its usually occurs in some servers such as Godaddy. This issue can be simply eliminated by putting some code in the htaccess file.

In order to work the website perfectly simply replace the existing code with the below code in your htaccess file

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

(Also see : Get the last executed Query in Codeigniter)

Sharing is caring!

Related Posts

Leave a Comment

shares