Forum Discussion
Thomas_Gobet_91
Cirrostratus
I'm sorry typo mistake due to autocorrect... This is not "to lower" but "tolower".
Sorry.when HTTP_REQUEST {
if {([string tolower [HTTP::uri]] contains "/xyz") and [string tolower [HTTP::host]] equals "abc"}{
HTTP::redirect http://abc:40001;
}
}
LyonsG_85618
Aug 15, 2014Cirrostratus
You may prefer to have:
starts_with "/xyz"
If you use contains iRule will check the whole URI for /xyz? i.e. it will not only match http://abc/xyz but also http://abc/123/456/xyz