mod_rewrite not working properly after server move
Posted by: pedrotuga
Posted on: 2008-12-20 12:35:00
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
http://example.com/index.php/example/path
into
http://example.com/index.php/example/path
Does anybody has a clue why isn't this working in apache 2.2?