Forum Discussion

Gerardo_Garcia_'s avatar
Gerardo_Garcia_
Icon for Nimbostratus rankNimbostratus
Nov 22, 2006

Modify the content to avoid redirects to https

The process that help us to redirect works great

 

But now I would like to chnage the content that we are responding back to the browser.

 

 

The idea is to open the page and replace a pattern like this

 

 

if you find http://mywebsite.com replace it with https://mywebsite.com

 

 

This is inside the content comming back from the BIG back to the browser.

 

 

Thanks!

1 Reply

  • Simple string-for-string replacements are best suited for the STREAM profile. I would create a stream profile with the search string of http://mywebsite.com and the replacement string of https://mywebsite.com and apply it to your virtual. No iRules needed. If you do want to go down the iRules route, take a look at the code share section, there are several samples in there dealing with modifying response content.

     

     

    -Joe