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" 
) 

Loading mentions Retweet

Filed under  //   cakephp   geekery   lighttpd   php  
Posted January 2, 2010
// 0 Comments