Zend Framework

Better lighttpd rewrite rule (lighttpd >= 1.4.24)

Details

  • Type: Docs:  Improvement Docs: Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Zend_Controller_Router
  • Labels:
    None
  • Language:
    English

Description

In the Programmer's Reference Guide (http://zendframework.com/manual/1.10/en/zend.controller.router.html) the lighttpd rewrite rule there is:

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

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

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

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: