I am fairly new to iRules so any help greately appreciated.
What is correct syntax to exclude URI "/abc/Web123/cde/forum123/ from receiving HTTP code 200 and the message “123456789”? Is the exclamation mark a orrect synatx to exclude URI?
Hello, if you’re looking to exclude an exact match for a string, “ne” operator can be used as well.
One thing I noticed -- since this is an exact match, be careful with “string tolower” syntax as it will convert everything to lowercase, so you will never see Web123 -- it’s gonna be web123 instead.
I generally don’t recommend converting paths to lowercase since it is case sensitive, try using this instead:
if { [HTTP::path] ne "/abc/Web123/cde/forum123" }{ ... }