Forum Discussion
Colin_Walker_12
May 21, 2008Historic F5 Account
So you want to inspect traffic and if it's one of those two URLs send it through the HTTPS VS?
If that's the case, try something like:
when HTTP_REQUEST {
switch "[HTTP::host][HTTP::uri]" {
"http://my.site.com/login.aspx" -
"http://my.site.com/checkout.aspx" -
default {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
That will send an HTTP redirect forcing those two particular URLs to an HTTPS version of the same URL. Just apply the above iRule on the port 80 VS and you should be all set.
Colin