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

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