Forum Discussion

Rostislav_Zatol's avatar
Rostislav_Zatol
Icon for Nimbostratus rankNimbostratus
Oct 20, 2009

URL rewrite in HTTP body

Hello,

 

 

I have some dumb server application which is working with frames and onload java script.

 

Beside this we are using SSL offload on LB, so for many pages I have URL that is pointing to nowhere.

 

 

 

Client issues

 

 

GET https://server.domain/x

 

 

and gets following HTML body:

 

 

 

 

 

 

 

 

 

 

 

Is there any possibility to rewrite URL to https://server.domain/xyz in HTML body?

 

 

BR

 

RZ

 

1 Reply

  • Hi RZ,

     

     

    You can use a stream profile and STREAM::expression iRule to rewrite response content. There are a few examples and details on the STREAM::expression wiki page (Click here).

     

     

    The STREAM::expression value would be:

     

     

    STREAM::expression "@http://server\.domain:80@https://server.domain@"

     

     

    If you have questions or try something and it doesn't work, can you reply with the iRule and logs showing the issue?

     

     

    Aaron