Mod_rewrite not working properly after server move

Dreamhost moved my account without prior warning. A few days ago, I go and visit a site of mine, and to my surprise it was unusable.

I contacted dreamhost and all the support says is: “we’ve moved you to a new server which uses apache 2.2 rather than 2.0 which was used in the old server, go and figure out how to solve the problem yourself”

The problem is the url rewrite, is not working the same way as it was in the old server.

This is rather disapointing, dreamhost does not provide rewrite logs, furthermore my rewrite rules are perfectly valid and worked in the other server.

This is what I have in my .htaccess

RewriteEngine on
RewriteCond $1 !^(index.php|includes|images|robots.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

The last like rewrites urls like this one


Does anybody has a clue why isn’t this working in apache 2.2?

Also having a problem with mod_rewrite - anyone know if dreamhost uses the standard server configuration for it or their own thing?

Maybe you just need to add a RewriteBase directive. Given its documented purpose, seems silly to leave it out.

:cool: -//-