Mathew_Loesch
Oct 15, 2014Nimbostratus
NetScaler content switching vs. F5 iRule - instream rewrite
I am migrating a configuration from NetScaler to F5. I need to replicate the content switching capability on the NetScaler with an iRule on the F5. The client sends "/path1/file.aspx" the server sees "/path2/file.aspx". I also need to reverse it on the way back out, so that the client always sees "/path1/file.aspx". The code for the inbound rewrite is easy... when HTTP_REQUEST { HTTP::uri [string map {"/path1/file.aspx" "/path2/file.aspx"} [HTTP::uri]] } How do I so the same on the outbound. I assume I have to use an HTTP_RESPONSE event, but the syntax is eluding me. Cane someone offer some assistance? Or better yet, a code example?