Forum Discussion
Kevin_Stewart
Sep 12, 2013Employee
Are you applying this iRule on an HTTPS VIP?
It's may be better to simplify it for each.
HTTP VIP:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/contact-us" } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
HTTPS VIP:
when HTTP_REQUEST {
if { not ( [string tolower [HTTP::uri]] starts_with "/contact-us" ) } {
HTTP::redirect "http://[HTTP::host][HTTP::uri]"
}
}