how to re-write page content

Hi,

I have a web app that sends some parameters in the body of the html as follows:

I need to find and rewrite these values to https://HOST_NAME:443/URI.

Is it also possible to make this happen only for certain responses , at the moment the GET which preceeds this response contains /scripts/oowa.exe/, would it be possible to parse for this somehow?

Any help is appreciated as I am a total newby to iRules

Hi there,

If you’re offloading SSL on the BIG-IP for an OWA server, you should be able to instruct it to use HTTPS reference by inserting a custom HTTP header in requests:

FRONT-END-HTTPS: On

You can add this to a custom HTTP profile and then add it to your virtual server.

If you do want to rewrite HTTP headers, you can use HTTP::header replace original_header_name new_header_value (Click here). If you want to rewrite the content, you can use a stream profile and STREAM::expression iRule (Click here).

Aaron

Thanks for this, I will look into this.

PS. It’s not OWA it’s a home grown app.