DaveC_21078
Feb 07, 2011Altostratus
Change path
I have a URL where I need to alter the path, to eliminate the SSL in or w/o caring what comes afterSSL/. I thought it would fairly simple, but I can't get it to work. Thanks.
when HTTP_REQUEST {
if {[string tolower [HTTP::path]] starts_with "/ssl"}{
HTTP::redirect "https://site1.com[string map -nocase {/ssl/ /} [HTTP::uri]]"
}
}