Wednesday, May 13, 2009

Kohana mod rewrite notes

Some servers seem to be configured differently.

Anything other than request variables (in other words actual directories and files) use:
RewriteCond %{REQUEST_FILENAME} !(index\.php)

with php 5.2.8 this rule seems to work with Kohana:

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

No comments:

Post a Comment