Teffany_142554
Aug 24, 2016Nimbostratus
irule uri preservation for direct https requests
I need to preserve 3 uri but redirect all other requests. I created the following rule, which works on the http vip, but breaks the site if also applied to the https vip. What adjustment(s) am I missing?
when HTTP_REQUEST { if { ([HTTP::uri] equals "/a/b/c.asp") or ([HTTP::uri] equals "/d/e/f.txt") or ([HTTP::uri] equals "/x/y/z/") } { HTTP::redirect "https://[HTTP::host][HTTP::uri]"
} else { HTTP::redirect "https://www.mywebsite/apply" } }