Forum Discussion
kmtmt_51646
Nov 20, 2012Nimbostratus
Hi What Lies Beneath, Aaron,
Thank you for your reply and sample code!
/test/ can only be the first directory, and if it comes to second I'd like to ignore it like this:
>c) http://www.example.com/directory/test/index.html
so I believe I need to have "start_with" instead of having only "equals".
> if { [class match -- [string trimright [HTTP::path] "/" ] starts_with testgroup2]}{
hmmm...
I thought [HTTP::path] can have file name as well, so "d) http://www.example.com/testing/index.html" will be "/testing/index.html"
Please kindly tell me if I'm wrong.
Thank you very much!