Codeigniter 500 internal server error due to index.php
16,733
You don't need to add index.php in config.php file.
Make sure you have following line in .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
Related videos on Youtube
Comments
-
Vahid Najafi 7 monthsI am working with codeigniter framework, and as I upload it to a host, it gave me a 500 Internal error.
But when I add
index.phptoconfig.php, it worked.What should I do?
In my .htaccess I have this:
RewriteEngine On RewriteBase /ci-framework/And also when I clean
/ci-framework/from end of RewriteBase it doesn't work.Thank you very much.
-
Hardik Ranpariya almost 8 yearsmake sure your wamp rewrite_modue is on.. in APACHE > APACHE Modules > rewrite_module
-
-
JWC May about 1 yearadding <IfModule mod_rewrite.c> in begining and closing with </IfModule> worked for me. :-)