Removing index.php using .htaccess

I need to remove index.php from my URLs that read such as so they read

I currently have .htaccess is my webroot directory (chmod 644) as follows:

[code]RewriteEngine on

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php[/code]

But nada! What am I doing wrong? I’m using a shared hosting plan, but I read that mod_rewrite is enabled on all plans.


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]

Still, same result. I’m using the yiiframework, which basically initially uses, but with .htaccess, im supposed to be able to boil that down to

so far, im getting, which is still just a little too funky for my taste :confused:

Any other ideas?

Keep in mind that .htaccess does not affect what your web application will generate for URLs in its output. It can only manipulate how those URLs are mapped to requests that your application will see.

this is what I’m trying to follow along with: it’s a very short read about how to edit .htaccess.

I think dreamhost might not be allowing mod_rewrite on my account.

Did you turn showScriptName off?