Project

General

Profile

Actions

Bug #1631

closed

inconsistent behaviour when using querystring match in combination with url.rewrite

Added by Anonymous about 16 years ago. Updated over 15 years ago.

Status:
Invalid
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:

Description

I use the following config:

url.rewrite = (".*" => ".pl?foo=bar")
$HTTPquerystring =~ "foo" {
url.redirect = ( "(.*)" => "http://www.google.nl" )
}

Now if I call curl like this
% curl --verbose 'http://www.foo.nl/'
lighttpd correctly redirects to google the first time but every other time it will NOT redirect! So it seems it matches the first time on the querystring AFTER url.rewrite and every other time it matches on the querystring BEFORE url.rewrite.

Furthermore, it seems that matching on $HTTPurl always takes place after url.rewrite and matching on $HTTPquerystring takes place BEFORE url.rewrite (well, except for the first time). I wonder if this is consistent with the specs and/or what people expect?

-- aiso

Actions #1

Updated by Anonymous about 16 years ago

With first time I mean immediately after restarting lighttpd

-- aiso

Actions #2

Updated by stbuehler about 16 years ago

  • Status changed from New to Fixed
  • Resolution set to invalid

Already fixed in 1.4.19.

Actions #3

Updated by stbuehler over 15 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom