Basic .htaccess File Generating Internal Server Error

I’m following a tutorial and this code was pulled from the accompanying files. It’s cut/pasted word for word, but it’s not working in my WAMP environment and I can’t figure out why. Any thoughts?

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php/$1

Probably because mod_rewrite isn’t enabled.

See on how to enable it.

Thanks. That worked. I’m confused though. I’ve ran several other .htaccess files successfully from the same environment. It’s strange why those would’ve worked without mod_rewrite being enabled.

.htaccess files in general when mod_rewrite is not enabled. It’s just that Rewrite directives don’t work :slight_smile:

Great. Thanks for the clarification.