Forum Discussion
fhlostonp_19913
Nimbostratus
Apr 24, 2015IRULE for HTTP string manipulation
I need help with creating a rule that will look for a key word and then redirect to a different VIP with the rest of the HTTP string intact.
For example,
Header comes with http://www.f5.com...
Richard__Harlan
Apr 24, 2015Historic F5 Account
I would look at the string command contains.
https://devcentral.f5.com/wiki/iRules.contains.ashx
when HTTP_REQUEST {
if {[HTTP::uri] contains "TRIGGER" } {
HTTP::redirect "http://new.f5.com/abc/TRIGGER/whatever/whatever"
}
}
You could also look at running HTTP::uri through string tolower to catch up and lower cases requests.
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