Thomas_Lam
Mar 14, 2016Nimbostratus
starts_with Not working
Hi there,
the target url is "https://portal.abc.com/store/register.aspx?lang=en"
I tried to redirect the page when hit the above url with below irule, but it didn't work.
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/store/register.aspx" } {
HTTP::respond 200 content "It works"
} }
However, if I tried below by replacing "starts_with" to "contains", it somehow works, but this is not I want.
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] contains "register.aspx" } {
HTTP::respond 200 content "It works"
} }
My F5 version is "BIG-IP 10.2.2 Build 852.0 Hotfix HF1".
Thanks.