Continuing on the theme of how to deal with SSL offload situations, I'm now including an example of how to rewrite specific URLs including domain when doing SSL offload. This example is designed based on the situation that specific domains should be rewritten in the URLs and no others, i.e. there are many external links on the site. As such, the domains that should be rewritten are well known--if a reference to a domain isn't known it shouldn't be rewritten in this case.
add rewrite action abs_to_rel replace_all "http.RES.BODY(1000000).SET_TEXT_MODE(ignorecase)" "\"/\"" -pattern "re~(https:)?//(www.)?domain.com/~"
add rewrite policy abs_to_rel true abs_to_rel
bind rewrite global abs_to_rel 30 NEXT -type RES_DEFAULT
The Oracle
Please comment on
http://www.netscalerkb.com/netscaler_qa/question_ns_rewrite-t220.0.html