Gary_Wilhelm_34
Jun 07, 2011Nimbostratus
Non-sensical mixed content message
I'm doing a fairly standard thing and attempting to redirect two individual URLs to HTTPS, keeping all other traffic on HTTP. Here are the two iRules I'm using (the first for HTTP traffic, the second for HTTPS traffic):
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] contains "/admissions/applynow/payment" || [string tolower [HTTP::uri]] contains "/alumni/support/gift/pledge/"}
{ HTTP::respond 301 Location "https://[getfield [HTTP::host] : 1][HTTP::uri]" }
else { pool LawPool3 }
}
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] contains "/admissions/applynow/payment" || [string tolower [HTTP::uri]] contains "/alumni/support/gift/pledge/"}
{ pool LawPool3 }
else { HTTP::respond 301 Location "http://[getfield [HTTP::host] : 1][HTTP::uri]" }
}
The redirecting is working as it's supposed to, but I'm continually getting mixed content messages on all HTTPS pages. The maddening thing is that tracing page requests and responses is showing only HTTPS calls for external resources (or calls via relative URL). There's absolutely no trace of a plain old HTTP request/response whatsoever. This leads me to believe there's something that's wrong with my iRules.
Any help would be much appreciated!!
Gary