Forum Discussion
nassahla_65866
Nimbostratus
May 29, 2010I Rule Help
Hello all, i am trying to come up with an irule that will help us accomplish the following, a redirect from http to https, and additionally i also need to have a redirect on a url for example https://...
L4L7_53191
Nimbostratus
Jun 01, 2010If the rule you've pasted above is the actual rule, you're missing some curly brackets and an open parenthesis. Also watch your cases - iRules are case sensitive (http::host isn't valid, but HTTP::host is). It should look something like this:
when HTTP_REQUEST {
if { ([HTTP::host] eq "xxx.com") and ([HTTP::uri] eq "/xxx") } {
HTTP::redirect "https://[HTTP::host]/[HTTP::uri]/login.do"
}
}
I've not tested the above rule, but it should go on clean.
-Matt
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
