Wednesday, January 26, 2011

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 [cci lang="apache"]RewriteRule .* index.php/$0 [PT][/cci] found in your .htaccess with one of the following options:

[cc lang="text"]# Option 1
RewriteRule .* index.php?/$0 [PT,L,QSA]

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

No comments:

Post a Comment