Sheetal_43349
Jul 02, 2018Nimbostratus
URI Trimming
Hello,
I am making an irule where if the irule contains certain character in this case lets say AA, it should remove AA and modify the uri as it is .so, lets say if the url is https://abc.com/AA/xyz, then it should modify it to https://abc.com/xyz and then take it to pool_AA.
I have made this irule but it doesnt seem to be working:
Please advise:
when HTTP_REQUEST { if { [[HTTP::uri]] starts_with "/AA/"} { HTTP::uri [string trimleft [HTTP::uri] /AA]
pool pool_AA
}
if { [[HTTP::uri]] starts_with "/BB/"}
{
HTTP::uri [string trimleft [HTTP::uri] /BB]
pool pool_BB
}
}