Forum Discussion
Gerardo_Garcia_
Nimbostratus
Nov 22, 2006Modify 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!
- 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.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects