One more question if I may... can wildcards be used e.g. using siteurls.config to look for characters in URI and redirect
[RewriterRule]
[LookFor].*tabid/786/.*[/LookFor]
[SendTo]http://www.123.com/error404.aspx[/SendTo]
[/RewriterRule]
Could I change this to an iRule as follows - how would you use string match for glob style wildcard pattern matching: (string match "*/tabid/786/*" [HTTP::uri])
Would this work?
when HTTP_REQUEST {
Set the path to lowercase
switch -glob [string tolower [HTTP::uri]] {
"*/tabid/786/*" {
HTTP::respond 301 Location "http://www.123.com/error404.aspx"
}
}
}