Forum Discussion
Andrew_Hinkley_
Nimbostratus
May 16, 2007iRule and default pool
I have this irule applied to a virtual server with a default pool of "MYPOOL", to take an HTTP request and redirect to HTTPS while maintaining the query string. Is the below "else" statement necessar...
Colin_Walker_12
Oct 01, 2007Historic F5 Account
Yes, the second example should be functionally the same if you have the default pool set on the Virtual.
Also, as a side note, you can save a lot of processing overhead by replacing your regular expression with a simple equivalence match using either "equals", "ends with" or "contains" as necessary to achieve the result you're looking for.
Something like"
when HTTP_REQUEST {
redirect /root/login.asp to https
if { [HTTP::uri] equals "/root/login.asp"} {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}HTH,
Colin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
