Forum Discussion

Franki21_136711's avatar
Franki21_136711
Icon for Nimbostratus rankNimbostratus
Nov 21, 2013

irule - URI Rewrite - Request AND Response ?

Im reserching a requirement to add context to incomming request that IDs the environment and the URI uniquely. for example

 

incomming to F5 >> abc.company.com/services output from F5 >> abccompany.com/UAT/test/services >>> to server think that can be done with a HTTP::URI

 

The tricky part here im having issue is- the user will need to "see" abc.company.com/services on the server response so how to "unwrite" it, if you will, in the response to F5 user

 

Any tips greatly appreciated!

 

1 Reply

  • Use a stream expression to rewrite the links in the content. ie rewrite the URI in the request, use a stream search/replace to rewrite abccompany.com/UAT/test/service back to abc.company.com/service.

     

    Simples.