[spanish]
Llevo unos días enfrascado en un proyecto web con CakePHP, y quería usar lighttpd como servidor web. Para que funcionen las «URLs limpias» CakePHP trae el típico .htaccess con las reglas mod_rewrite para Apache, que hay que convertir al formato de lighttpd. He encontrado la solución aquí, 3er comentario:
[/spanish]
[english]
I’ve been busy the last couple of days with a web project I’m developing using CakePHP, and I wanted to use lighttpd as the web server. CakePHP comes with the typical .htaccess with Apache’s mod_rewrite rules, that need to be converted to lighty’s format. The solution can be found here, 3rd comment:
[/english]
Lighttpd and CakePHP setup in subdirectories
[code lang=»bash»]
url.rewrite-once = (
«/(.*).(.*)» => «$0»,
«/(css|files|img|js)/» => «$0»,
«^/([^.]+)$» => «/index.php?url=$1»
)
[/code]