Nlepore_67643
Jan 25, 2013Nimbostratus
Having issues with redirect
I'm trying to redirect certin pages to https, based on URI in a class.
Looks to be working for the default.aspx page, but not the others.
when HTTP_REQUEST {
if {[HTTP::path] equals "/"}{
HTTP::redirect /default.aspx
} elseif {[class match [string tolower [HTTP::uri]] contains secured_uris]}{
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
The class includes;
/default.aspx
/contact_us.aspx
is it because I'm doing the redirect first?