
No input file specified Codeigniter
No input file specified error is related to .htaccess in Codeigniter. We just have to change the rewrite engine rules in .htaccess to avoid this error.
Answers 1
-
No input file specified error solving using htaccess in Codeigniter 4
--PATH public\.htaccessRewriteRule ^([\s\S]*)$ index.php/$1 [L,NC,QSA] #Replace with below code RewriteRule ^([\s\S]*)$ index.php?/$1 [L,NC,QSA]
0Find RewriteRule ^([\s\S]*)$ index.php/$1 [L,NC,QSA] using ctrl + f after that replace code with RewriteRule ^([\s\S]*)$ index.php?/$1 [L,NC,QSA]. The changes between these codes is only a ? which have to add after RewriteRule ^([\s\S]*)$ index.php in .htaccess file under public directory.
Or you can simply add ? mark after index.php in that particular line of .htaccess code.
Random Code Snippet Queries: CodeIgniter
- Unable to set session in codeigniter
- How to move from one view to another in Codeigniter
- Call to undefined function CodeIgniter\locale_set_default()
- How to select all checkbox in Codeigniter
- Get last executed query in codeigniter
- How to call helper function in Codeigniter view
- How to get field names of table in Codeigniter
- Update an existing table record with +1 in CodeIgniter
- Convert dd/mm/yyyy to yyyy-mm-dd in codeigniter
- Codeigniter 4 call model function from controller
- How to create custom helper in codeigniter 4
- Default htaccess file code Codeigniter