Forum Discussion
Thomas_Gobet_91
Aug 14, 2014Cirrostratus
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;
}
}
- siyadh_121603Aug 14, 2014NimbostratusHi Thomas, Appreciated your quick reply. But it is redirecting to https and getting server error 404.
- LyonsG_85618Aug 15, 2014CirrostratusYou 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