Forum Discussion
Sean_Lagerholm_
Nimbostratus
Nov 16, 2005migrating irule from v. 4.6.4 to version 9.1
Can someone tell me if this irule will work on the newer BigIP -migrating to version 9.1 from 4.6.4 and will it break anything?
here's the rule :
if (http_host contains "www.dzi....
Nov 16, 2005
First of all, I moved this from the iControl to iRules forum (in case you were wondering).
This rule won't work as-is but will with some slight modificatons. You'll need to change the 4.x variables to their 9.x counterparts and change the parens in your if's to curly braces.
when HTTP_REQUEST {
if { ([HTTP::host] contains "www.dzi.dhl.com") and
([HTTP::uri] contains "client") } {
HTTP::redirect "https://interactive1.dhl.com/client/index.jsp"
} elseif { [HTTP::host] eq "www.dzi.dhl.com" } {
HTTP::redirect "https://interactive1.dhl.com/dzi/controller/login"
} elseif { [HTTP::host] eq "www.dzi.danzas.com" } {
HTTP::redirect "https://interactive1.dhl.com/dzi/controller/login"
} else {
discard
}
}
-Joe
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