Codeigniter htaccess not working
问题 I am using this htaccess file on my site to remove index.php. RewriteEngine on RewriteCond $1 !^(index\.php) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] But this file doesn't work.Rewriting is enabled in Apache module.Version of codeigniter used is 2.0.1. 回答1: I've tested this without codeigniter, and it works. I create a folder under htdocs, called "demo". I put ".htaccess" there with your content + additional line