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

26
5



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 ! 🙂

Nguồn: https://canhosafira.com.vn

Xem thêm bài viết khác: https://canhosafira.com.vn/cong-nghe

26 COMMENTS

  1. RewriteEngine On

    RewriteCond %{REQUEST_URI} ^/system.*

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

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here