Forum Discussion
Dafydd__Rhys-Jo
Mar 27, 2006Historic F5 Account
Redirect iRule 4.2
if (http_uri matches_regex "/manager/protected") {
redirect to "https://%h/%u"
}
else {
use ( appgen_216.152.109.110.80 )
}
I am trying to get thi...
hoolio
Cirrostratus
Mar 29, 2006The syntax of the rule looks fine. You may want to change the 'matches_regex' to 'starts_with' if the URI you want to redirect always begins with /manager/protected.
Assuming you associated this rule with a VIP on port 80 (and not the proxy), it should indeed redirect to the proxy listening on 443.
If you use live http headers with FF or another client tool to record requests/responses, do you see the request to http://your_site/manager/protected, being answered with a 302 direct to https://your_site/manager/protected?
I think you should be able to get a much clearer idea of what is happening if you check the client request and node responses.
Aaron
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
