C_D_18583
Jun 27, 2006Nimbostratus
Apache mapping and F5 Irules
Here is one Apache mapping using mod_rewrite.
/cgi-ads/jsp/viewitem.do?category=personal_services_local&Region=A http://at-consume.tsl.da.com:2200/telus-cp-portal-web/jsp/productcatalogue/personal/index.jsp?
I would like BIP IP to handle this redirect by using IRules something like:
RULE NAME : S_REDIRECT
VERSION : 1.0
DESC : Redirect
when HTTP_REQUEST {
if { [HTTP::uri] equals " /cgi-ads/jsp/viewitem.do?category=personal_services_local&Region=A" } {
HTTP::redirect "http://at-consume.tsl.da.com:2200/telus-cp-portal-web/jsp/productcatalogue/personal/index.jsp"
}
}
Is there a more elagant way to write this Irule? For example using datagroups?