Details
-
Type:
Docs: Problem
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.5.0
-
Fix Version/s: 1.5.2
-
Component/s: None
-
Labels:None
-
Language:English
Description
In the Programmer's Reference Guide (Section 7.5.1.), about the lighttpd rewrite rule there is:
url.rewrite-once = ( ".*\.(js|ico|gif|jpg|png|css)$" => "$0", "" => "/index.php" )
But with this rewrite rule you miss the HTTP GET parameters
I suggest this rule (tested with succes on my website):
url.rewrite-once = ( ".*\.(js|ico|gif|jpg|png|css)$" => "$0", ".*\?(.*)$" => "/index.php?$1", "" => "/index.php" )
Regards
Jean-Yves
It looks like both rulesets would be susceptible to breaking when GET parameters end in the same suffixes as listed in the first rule of each ruleset. For example, URLs such as:
would match the first rule and fail. Perhaps these are edge cases, however.