Is there anything else in the iRules? Or are they just a single event? Two iRules shoould both fire, one after tjhe other, unless the first has a discard, drop or event statement...
Can you put a logline in the start of the event to indicate whether they're being called, and what the URI is
(Oh. I'd probably re-write the iRules to do a lookup in a class rather than a whole lot of if/then/elseif's... It'll scale better. e.g. (I was going to write one, but the findclass wiki page has it as an example already)
class URIredirects {
"/dir1/dir2/dir3/ http://somehost.somewhere.com/redirect_target.html"
"/dir4/dir5/dir6/ http://someotherhost.nowhere.com/redirect_target.html"
}
when HTTP_REQUEST {
set location [findclass [HTTP::uri] $::URIredirects " "]
if { $location ne "" }
HTTP::redirect $location
}
}