Wednesday, November 18, 2020

Codeigniter problem : No input file specified. when open the page

 In my codeigniter page, i get error No input file specified.

so what the problem?

The problem caused by, your apache+php run the CGI (multi PHP version)..


How to fix that error (No input file specified.) ..?

You can create .htaccess on root of codeigniter folder.

and copy this script :

RewriteEngine On

RewriteCond %{REQUEST_URI} ^/system.*

RewriteRule ^(.*)$ index.php?/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.+)$ index.php?/$1 [L]


If you already have .htaccess, just add ? on index.php?/$1

then last, refresh your codeigniter page ! :)

No comments:

Post a Comment

Please Comment Here!

How to backup and download Database using PHP

< ?php $mysqlUserName = 'databaseusername' ; $mysqlPassword = 'databasepassword' ; $mysqlHostNa...