Forum Discussion
Satarian_205136
Nimbostratus
Aug 21, 2015iRule to URL rewrite
Hey All,
I've tried searching for a solution to this but nothing has come up. Probably because I am not sure the correct search query to put in. If this is answered already I apologize for the r...
Kevin_Stewart
Employee
Aug 21, 2015I guess the answer depends on what the portal is. Is this an APM portal or are you load balancing another portal product with an LTM?
If the latter, once that URL gets to the client it's too late. So you're best option is to use an iRule to catch the responses from the portal and rewrite the www.google.com links. I'd probably use an empty STREAM profile and STREAM iRule. It might look something like this:
when HTTP_REQUEST {
HTTP::header remove Accept-Encoding
STREAM::disable
}
when HTTP_RESPONSE {
if { [HTTP::header Content-Type] contains "text" } {
STREAM::expression {@www.google.com@www.company.com@}
STREAM::enable
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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