Forum Discussion
hooleylist
Nov 19, 2012Cirrostratus
So you could explicitly list /test, /test/ and /test/index.html in the data group and use the exact client URI for the lookup:
if { [class match -- [HTTP::path] equals testgroup2]}{
Or you could remove the trailing slash from the data group entries and trim the client's requested URI during the class lookup:
if { [class match -- [string trimright [HTTP::path] "/" ] starts_with testgroup2]}{
Note that I've used [HTTP::path] to get just the requested path without the query string in the URI for the lookup.
Aaron