Forum Discussion
Nom_55811
Nimbostratus
Jan 28, 2010Routing back via same interface
Hi All,
I've been search for a solution to this on and off for the last couple of weeks, and haven't been able to find anything so far, so I thought I might post here... bear with me as...
It would be more efficient to only check for the Location header on redirects. Also, if you want to preserve the URI in the redirect, you should use string map:
when HTTP_RESPONSE {
if { [HTTP::is_redirect] and [HTTP::header Location] starts_with "http://newsite.apa.org:443"} {
log local0. "Location [HTTP::header Location]"
HTTP::header replace Location "[string map "http://newsite.apa.org:443 http://newsite.apa.org" [HTTP::header Location]]"
}
}
Aaron
Recent Discussions
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