Forum Discussion

san2hosh_306591's avatar
san2hosh_306591
Icon for Nimbostratus rankNimbostratus
Jun 21, 2017

Complex Irule transform to local traffic policy which is with the substring.

I'm trying to convert this below Complex irule to a local traffic policy.I'm facing problem at converting that substring. Can anyone help me.

  elseif { $http_uri starts_with "/servicecenter/servicerequest"} {
     set http_uri_suffix [substr $http_uri 14]
     HTTP::uri "$http_uri_suffix"
     SSL::disable serverside         
     HTTP::redirect "https://www.xyz.com[HTTP::uri]"
  • Not all the iRule functionality exists in the LTM policy. I don't think you will find substr equivalent in an LTM policy.