Remove index.php

Hi I use the following script to get rid of index.php on my localhost but this doesn’t work on my hosting for 1and1. Any one have an idea what can I change for it to not give me “Error 500 - Internal server error”

RewriteEngine on

# if a directory or a file exists, use it directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php

RewriteRule . index.php

Thank you.

be sure you have apache’s rewrite module on

Yes that is on but 1And1 is a pain with this things. I was wondering if any one has done this on 1And1?

Seems to be nothing new. Check this:

Thanks for the link :)

Very useful