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!