Forum Discussion
hooleylist
Jul 24, 2008Cirrostratus
The stream portion of the rule should be working fine to only rewrite the http:// references to https:// for *.example.com. The issue is likely to be there isn't any checking on 30x redirects. If you change this line:
if {[HTTP::is_redirect]}{
To:
if {[HTTP::is_redirect] && [string match -nocase "http://*.example.com*" [HTTP::header value Location]]}{
You can restrict the Location header rewriting to redirects which match http://*.example.com*
If this doesn't work, try adding logging to the rule, reproduce the issue and then repost your current rule with the logging and the log output from /var/log/ltm. If you have any problems debugging the rule, let us know.
Aaron