Forum Discussion
CraigM_17826
Altocumulus
Feb 03, 2010Odd issue with pools and a redirect
Hi all,
Sorry if this is a bit of a rambling post, but it's quite an odd issue I am seeing and I wanted to explain what we are doing and why. Hopefully it's not too confusing.
...
CraigM_17826
Altocumulus
Feb 05, 2010Hi Aaron,
My appologies up front for what I am about to ask, but I'm stuck for time.
The developers of this external site maintain they can't stop their redirects to a their specific base URL. So what happens is the client browser is honouring the redirects and navigating away from our URL. What I need is some iRule code that will allow me to detect these redirects and replace their base URL (external-server.acme.com.au) with our own (www.mycomp.com.au) so the end user always sees our base URL. The URI part is to remain unchanged. The port 82 dependancy has been removed which is one good thing, I'm just not sure of how to code for this. I'm using your example as a base but am not sure of what the HTTP::header replace statement should look like.
This is what I have so far
when HTTP_RESPONSE {
if {[HTTP::is_redirect]}{
if {[HTTP::header Location] contains "external-server.acme.com.au"}{
HTTP::header replace Location
which isn't much. I'm just not sure on how to construct the HTTP::header replace statement.
Regards
Craig
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