Press "Enter" to skip to content

No input file specified – Codeigniter

0

No input file specified – Codeigniter issues:- this issue sometimes caused by the .htaccess file, so change your .htaccess file to the below code

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

Also some time this will work in CodeIgniter

$config['uri_protocol'] = "REQUEST_URI"

RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA] 

After adding the above code in the .htaccess file everything will work fine. If you don’t know about the above code then, let me tell you about this code. It will help you to remove index.php from the URL.

Check out our SIP CALCULATOR

Check out more PHP tutorials

How to delete record data from another table id - MySQL
How to export a query result in excel CSV from MySQL PHPMyAdmin