Forum Discussion
Kevin_Stewart
Feb 05, 2014Employee
Try this:
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr] equals src.src.src.src] } {
pool my_pool member dst.dst.dst.dst
} elseif { [string tolower [HTTP::host]] == "fqdn" } {
HTTP::redirect "https://fqdn/irj/portal/" pool pool_t_portal
} elseif { ( [HTTP::uri] equals "/" ) or ( [string tolower [HTTP::uri]] equals "/index.html" ) or ( [string tolower [HTTP::uri]] equals "/webdynpro/welcome/welcome.jsp" ) } {
HTTP::redirect "https://[HTTP::host]/irj/portal/"
} elseif { ( [HTTP::uri] starts_with "/~" ) and ( [string tolower [HTTP::uri]] ends_with "index.html" ) } {
HTTP::redirect "https://[HTTP::host]/irj/portal/"
} elseif { ( [string tolower [HTTP::uri]] starts_with "/uddiclient" ) or ( [string tolower [HTTP::uri]] equals "/uddiclient/process" ) } {
HTTP::redirect "https://[HTTP::host]/irj/portal/"
} elseif { [string tolower [HTTP::uri]] equals "/nwa" } {
HTTP::redirect "https://[HTTP::host]/irj/portal/"
}
}