No input file specified Codeigniter

Created at 18-May-2021 , By samar

No input file specified Codeigniter

Hello everyone, in this post we will examine how to solve the "No input file specified Codeigniter" programming puzzle.

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.
  • No input file specified error solving using htaccess in Codeigniter 4

    --PATH public\.htaccess
    RewriteRule ^([\s\S]*)$ index.php/$1 [L,NC,QSA]
    #Replace with below code 
    RewriteRule ^([\s\S]*)$ index.php?/$1 [L,NC,QSA]

    Find 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.

Back to code snippet queries related codeIgniter

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.