Forum Discussion
hooleylist
Feb 01, 2012Cirrostratus
Hi,
The main change to make is replacing redirect to with HTTP::redirect. SAP should be case sensitive also, so you can remove the string tolower. Lastly, the most efficient format for using subnets with the IP::addr command is with CIDR on the network address:
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/1086449/iRules-IP-Comparison-Considerations-with-IPaddr-Command.aspx
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/irj/portal" and [IP::addr [IP::remote_addr] equals 10.0.0.0/8] } {
HTTP::redirect "http://web1[HTTP::uri]"
}
}
Aaron