Brendan_Hogan_9
Apr 21, 2006Nimbostratus
Cannot get redirect to work
Desired result:
If HTTP_REQUEST is http or https
output = https.
Also, if URI is "/", then append "/ps/signon.html"
The following works as long as request is http and not https:
when HTTP_REQUEST {
if { [HTTP::path] equals "/" } {
HTTP::redirect "/ps/signon.html"}}
How do I get this to also function for https requests?
The following works for the https to http redirect:
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host]/ps/signon.html"
}
How do I get both to work in one statement or is there a better way to accomplish this? I would guess this is a simple irule to create for someone who has a clue but that is not me :-)
Thanks!