Forum Discussion
Jan 19, 2011
[HTTP::uri] in browser URL
Hello Community, Does anyone know how the first condition can remain true until the URL IN THE BROWSER changes, making it false? when HTTP_REQUEST { if { ([string tolower [H...
Jan 20, 2011
Sorry for not being clear. Here is an example.
Go to http://www.qad.com/partnercenter
IRules will route traffic over https if browser URL shows "template.LOGIN" else route over "http".
ex)
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] 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
}
}
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?
Hope that helps.
Thanks.
Regards,
TRX
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
