Hi Jim,
You can try the following, please be advised you can now achieve the same results using a Traffic Policy (configured in the GUI). Code that is no longer supported are variables declared in the global namespace ($::var) these will demote your CMP so the iRule will only run on one CPU. Also matchclass has been deprecated
when RULE_INIT {
set static::DEFAULT_URI "/b2b/init.do"
}
when HTTP_REQUEST {
if {[class match [HTTP::uri] contains B2B_Blocked_URLS] } {
HTTP::redirect $static::DEFAULT_URI
} elseif { not ([class match [HTTP::uri] contains B2B_URLS]) } {
log local0.crit [HTTP::uri]
HTTP::redirect $static::DEFAULT_URI
}
}