Forum Discussion
Stanislas_Piro2
Aug 24, 2016Cumulonimbus
Hi,
If you apply this irule on HTTPS VS, it will loop for the three first URLs...
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/") } {
if {[TCP::local_port] equals 443} {
return
} else {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
} else { HTTP::redirect "https://www.mywebsite/apply" }
}