Hello Sinistrad,
Try the following iRule and let me know how it goes :
when HTTP_REQUEST {
HTTP::header remove "Accept-Encoding"
STREAM::disable
set host [HTTP::host]
}
when HTTP_RESPONSE {
STREAM::disable
if { [HTTP::header exists Location] } {
HTTP::header replace Location [string map {"http://" "https://"} [HTTP::header Location]]
}
if { [HTTP::header Content-Type] contains "text" } {
set before "http://${host}:80/"
set after "https://${host}/"
STREAM::expression "@${before}@${after}@"
STREAM::enable
}
}
Regards,
AS