Forum Discussion
Matt_Mueller_10
Nimbostratus
Dec 22, 2004Help with removing certain header information from URI
Hello,
We're in the initial setup phase, and are having problems with our iRule. This is what we have so far....
Basically, the customer opens a weblink, lets say www.customerce...
rapmaster_c_127
Dec 22, 2004Historic F5 Account
There's no need for a temporary variable. One thing to note about iRules in 9.x is that they're a full-blown programming language, and the "pool" command is simply that - a command. There's no implied termination of evaluation upon calling it.
That said, the following should work. Note that it rewrites the URI on its way to the server. The client will not see anything different in its browser bar. If you need the client to send a request for a new URI altogether, consider using the HTTP::redirect command instead of rewriting the URI on the fly.
rule adsif5 {
when HTTP_REQUEST {
if {[HTTP::uri] contains "/customer1"} {
pool customer1
} elseif {[HTTP::uri] contains "/customer2"} {
pool customer2
} else {
pool Supporthomepage
return
}
if {[HTTP::uri] starts_with "/webcentral"} {
HTTP::uri "/archibus"
}
}
}
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