Forum Discussion
Jim_Gore_43214
Nimbostratus
Oct 26, 2006Need to modify host name/port in node generated redirect
Hello,
I am attempting to move some web sites under the F5 v9.2.3 without modifing the site itself. There are redirects from the sites and absolute links in the generated pages.
I...
Jim_Gore_43214
Nimbostratus
Oct 27, 2006Just messing around with the Location header, I was able to accomplish what i wanted to with the node submitted redirect:
when HTTP_RESPONSE {
if {[HTTP::is_redirect] } {
log local0. "Request redirected."
log local0. "[HTTP::header names]"
log local0. "[HTTP::header Location]"
set rURL [HTTP::header Location]
regsub -all http $rURL https newURL
regsub -all rb13 $newURL epbt2 newURL
regsub -all :8050 $newURL "" newURL
log local0. $newURL
HTTP::header replace Location $newURL
}
}Is there a better way to do this?
Thanks!
Jim
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
