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.
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 (RewriteBase):
Then “index.php” below:
Tested with:
http://localhost/demo/hello
Result:
/hello
Things to check:
RewriteBase.
link for further information.