fcicala_29180
Jan 14, 2010Nimbostratus
http to https redirect with exceptions
Hello I am very new to iRules and just inherited a farm of 9.x F5.
I see that my predecessor is performing this task using the following iRule:
when HTTP_RESPONSE {
if { [HTTP::header Content-Type] starts_with "text/" }{
STREAM::expression "@http:@https:@"
STREAM::enable
} else {
STREAM::disable
}
}
I read about it and if I get it right this rules replaces everything that has the word HTTP with HTTPS?
The actual requirement I was given a few days ago is to replace links that contain HTTP with HTTPS if the link contains a specific word in it.
Can this be somehow achieved?