Forum Discussion
Robert_Teller_7
Historic F5 Account
Give the following a try
when HTTP_REQUEST {
if { [TCP::remote_port] eq 80 && !([string tolower [HTTP::uri]] starts_with "/articles/2015/09/09/something.aspx") }
{
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
elseif { [TCP::local_port] eq 443 && [string tolower [HTTP::uri]] starts_with "/articles/2015/09/09/something.aspx" } {
HTTP::redirect http://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
else {
return
}
}
Joe_Pipitone
Oct 05, 2015Nimbostratus
This works partially - it doesn't force SSL if the user goes to another article - it should only bypass redirecting to SSL if it IS /articles/2015/09/09/something.aspx. Everything else should be forced to https.