Forum Discussion
Kalpesh_48932
Nimbostratus
Oct 05, 2012irule with Contains operator
Hi All,
I have created irule, in fact wanted to have similar irule with contains operator.
when HTTP_REQUEST {
if {
[HTTP::uri] contains "AMSLang"
} then { ...
What_Lies_Bene1
Cirrostratus
Oct 05, 2012No need for the 'then'. Also, you seem to be redirecting twice, should there be another if in there?
Anyway, this should work for a single redirect;
when HTTP_REQUEST {
if { [HTTP::uri] contains "AMSLang" } {
HTTP::redirect "http://sgsiaxhrmsgr1.saint-gobain.com:8201" }
}
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
