Forum Discussion

johnmervin_4578's avatar
Icon for Altostratus rankAltostratus
Feb 16, 2017

Need to replace URL and URI

I am looking for a irule so that when I hit\A it need to redirect to\B it need to redirect to\C...
  • johnmervin_4578's avatar
    Feb 17, 2017

    I played around and come up with this and meet my requirements


    when HTTP_REQUEST { if {[HTTP::host] contains "john" }


    { HTTP::redirect "[substr [HTTP::uri] 1]"






    substr "1" command basically strips of the "/" on the client request