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 this redirection to work from http to https. Simple enough, yet it keeps looping, and will not proxy.
Does anyone with 4.2 irules experience know of any tricks for this?
- Dafydd__Rhys-JoHistoric F5 AccountBeuller? 0]
- hoolio
Cirrostratus
The 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. - Dafydd__Rhys-JoHistoric F5 Accountfor matches_regex to work would I have to have the full https://address.com/manager/protected ?
- hoolio
Cirrostratus
If you are performing a match against the URI as in the sample you provided, you would only want to specify the path and/or object name, not the protocol or host. - Dafydd__Rhys-JoHistoric F5 AccountI'm looking through the config, and it's looking like proxy is definately the issue.
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