ZF-10139: Better lighttpd rewrite rule (lighttpd >= 1.4.24)

Issue Type: Docs: Improvement Created: 2010-07-12T07:08:01.000+0000 Last Updated: 2012-11-20T21:37:47.000+0000 Status: Open Fix version(s): Reporter: Kristof Kovacs (kkovacs) Assignee: None Tags: - Zend_Controller_Router

Related issues: Attachments:


In the Programmer's Reference Guide (…) the lighttpd rewrite rule there is:

url.rewrite-once = (
    ".<em>\?(.</em>)$" => "/index.php?$1",
    ".*.(js|ico|gif|jpg|png|css|html)$" => "$0",
    "" => "/index.php"

Since 1.4.24, lighttpd adds a new configuration option that we can use to more closely emulate the Apache .htaccess behavior:

url.rewrite-if-not-file = (
    "/(.*)$" => "/index.php?$1",


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.