Posterous

shakeit

Lightty Cake: CakePHP + Lighttpd Rewrite Rules

This little snippet will also allow you to capture your query string variables should the need arise.

 
url.rewrite-once = ( 
	"^/(css|files|img|js)/(.*)" => "/$1/$2", 
	"^/([^?]*)(?:\?(.+))?$" => "/index.php?url=$1&$2" 
) 
Filed under: cakephp geekery lighttpd php
0 comments

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    twitter


 
To Posterous, Love Metalab