Kohana 3 - .htaccess that Works on DreamHost

I’m currently hosting my sites on DreamHost because … well let me just put it this way: we’re both cheap. It works out. But what doesn’t work out are the default .htaccess rules that come bundled with Kohana. So to fix this, swap the line RewriteRule .* index.php/$0 [PT] found in your .htaccess with one of the following options:
# Option 1
RewriteRule .* index.php?/$0 [PT,L,QSA]

# Option 2
RewriteRule .* index.php?kohana_uri=$0 [PT,L,QSA]

Please leave a comment if you have any experience with these, or if you have found success with another one.


Levi Hackwith said...

Thanks for this. You just saved me from another 3 hours of hell. 100 Internet karma points to you!

Blogger said...

DreamHost is ultimately the best web-hosting provider with plans for all of your hosting requirments.

Post a Comment