I’m trying to create a ssl redirect that will forward all port 80 requests to 443 but want one URI excluded from doing so. I’ve created the following but my iRule skills aren’t sharp enough to figure out what’s missing.
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {[HTTP::uri] ne "/cpt/cptworkflowservice/"} {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
}