kraigk_52257
Aug 30, 2013Nimbostratus
Another http redirect question
I've scoured devcentral and google and haven't found my answer. I'm trying to redirect http based on header. A CNAME gets traffic to our VIP as well as straight http that needs to be redirected to https. http to https iRule has been in place and working for a long time I'm just trying to add this other header. Is this possible?
when HTTP_REQUEST {
if { [HTTP::host] contains "mail.domain.com"} {
HTTP::redirect https://[HTTP::host][HTTP::uri]
if { [HTTP::host] contains "exchange.mail.com"} {
HTTP::redirect http://www.domain.com/page.html[HTTP::uri]} } }