Forum Discussion

Aaron_Tebo_7015's avatar
Aaron_Tebo_7015
Icon for Nimbostratus rankNimbostratus
Sep 01, 2009

Irule version of Apache rule set

Hello,

 

 

What would be the equivalent of the rewrite rule from Apache in Irules?

 

 

apache rule below:

 

 

RewriteRule ^/app/upload/ap(.*) http://upload.myserver.com/app/upload$1

 

 

Need to know how I could do this with Irules. I am very new to F5 and Irules.

 

 

 

Thanks,

 

 

Aaron
  • HI Aaron,

     

    Are you changing a URL or replacing links in a page?

     

     

    CB

     

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    The rule is rewriting the URI, appending whatever was after /app/upload/ap to /app/upload. I'd guess the host is also being hardcoded to upload.myserver.com.

     

     

    Aaron