That iRule would check to see if the path or query string contained the string xyz and redirect the request to the same host and URI via HTTPS.
Can you clarify your question? Is the issue related to something with a page that references other objects and only some requests should be redirected?
Know that the URL will show “https://www.qad.com/partnercenter”, but all the href on that page will go over “http” if the URL does NOT contain “template.LOGIN”.
Resulting in http/https mixture pop ups on IE8/windows 7 on an ssl page URL.
So the question is, is there a way to keep all page href request urls to go over https as long as the browser URL contains “template.LOGIN” so we can avoid SSL http/https prompts?
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] contains "/template.login") or ([string tolower [HTTP::header Referer]] contains "/template.login") } {
Do nothing. Let traffic go through because these need to go over SSL
return
} else {
else re-route traffic back to http from https
HTTP::respond 301 Location http://[HTTP::host][HTTP::uri]
return
}
}