Gary_Bristol_19
Jul 29, 2015Nimbostratus
need to check for a path in an irule
i need to check for a path in an irule if it isn't there send it to one re-direct if it is, send it to a different re-direct
when HTTP_REQUEST {
set lhost [string tolower [HTTP::host]] set lpath [string tolower [HTTP::path]]
if { $lhost equals "itservices.ou.edu" } { if { not ($lpath starts_with "/norman") }{ HTTP::redirect "https://ouitservices.service-now.com/ess_portal" } } elseif { $lhost equals "itservices.ou.edu" } { if { ($lpath starts_with "/norman") }{ HTTP::redirect "http://itscnorman.ou.edu" } } }