Resolving the CodeIgniter “No Input File Specified” Error

If you are getting no input file specified error for inside pages in Codeigniter PHP, this is the facing issue with htaccess redirection you have to replace your root htacces file with below some code. if you look on the Rewrite code you can see a question mark after the main index.php (index.php?/$1) .This .htacces making the correct URL redirection in Codeigniter.

Codeigniter No input file specified error for inside

Error: the error “No Input File Specified” when visiting any page other than the homepage.

The Solution : Update On Your .htacces File

RewriteEngine On
# Disable directory browsing 
#Options -Indexes
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]  

I hope you get an idea about no input file specified. codeigniter.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Leave a Comment