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!

Leave a Comment

DON’T MISS OUR GIVEAWAYS!
Subscribe To Newsletter
Subscribe to our newsletter and get all the latest updates offers and giveaways right in your inbox.
Subscribe
Give it a try, you can unsubscribe anytime.
close-link

Join Free Giveaway!

Subscribe to our newsletter to get latest offers and giveaways!
SUBSCRIBE
close-link