Forum Discussion

Huub_Dewachter1's avatar
Huub_Dewachter1
Icon for Nimbostratus rankNimbostratus
Feb 21, 2014

REDIRECT http request depending on occurrence of string in URL and/or URI

Hello All. An urgent request came to my desk to redirect http requests depending on the occurrence of a certain string in the URL and/or URI. Still being a newbee with iRules a can't produce that "yesterday". Any quick answers? TIA, Huub.

 

4 Replies

  • Of course. It turned out to be very, very easy, even for a newbee. It only took some time. And that's what we don't have enough of, these days ...

     

    elseif { [HTTP::uri] contains "/pdfgen/pdfgen.aspx?ID=" } { HTTP::redirect "http://xxxxxxxxx:9099" TCP::close log local0. "uri contains /pdfgen/pdfgen.aspx?ID=" )

     

    Best regards, Huub.