php - Codeigniter .htaccess not working, show "500 Internal Server Error" messege -
this question has answer here:
i using wamp , in www folder have installed codeigniter under folder name ci. before using .htaccess codeigniter worked fine , see codeigniter welcome messege when running project. after make .htaccess file in ci directory, "500 internal server error" when running project. here's part of config.php file-
$config['base_url'] = 'http://localhost/ci/'; $config['index_page'] = ''; $config['uri_protocol'] = 'request_uri';
and here's .htaccess file-
<ifmodule mod_rewrite.c> rewriteengine on rewritebase /ci/ rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l] </ifmodule>
here's apache error log messege-
[sat apr 06 00:04:47 2013] [alert] [client 127.0.0.1] c:/wamp/www/ci/.htaccess: rewriteengine not allowed here, referer: http://localhost/
i enabled rewrite_module in apache. can more? hope me
n.b. codeigniter version 2.1.3, apache version :2.2.11, php version :5.3.1, mysql version:5.1.32
you need allowoverride all
in ci
directory context
<directory /path/to/ci> options followsymlinks allowoverride # other options/directives needed </directory>
Comments
Post a Comment