JackYates_39764
May 08, 2011Nimbostratus
https redirection Irule on https virtual server
I'm trying to work out a way to re-direct an https request to another https URL.
Link comes in as https;//oursite.com
I have an IRule on the HTTP Virtual server that converts http://oursite.com over to https://oursite.oursite.com/abc and that works fine.
But if I do https://oursite.com it does not get converted. I have tried applying the same IRule to the HTTPS Virtual server but that is not working.
The IRule looks like this.
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
if { ( ($host starts_with "oursite.com") or ($host starts_with "www.oursite.com")) } {
HTTP::redirect "https://oursite.oursite.com/abc"
}
}
Thanks! Jack.