Forum Discussion
Naumin_Dave_144
Nimbostratus
Dec 22, 2016How to hide URI from server response
Hi All,
I am trying to remove URI from return traffic(i.e. from server side response to client side) as the web server(pool member) is coded with redirection. Based on my research we need HTTP+STRE...
PeteWhite
Employee
Dec 22, 2016Add logs so that you can see what is happening.
Am I correct that you want to rewrite redirects to change the location header?
The second iRule is the one that I would use for that - I have created one very close to that recently and it worked fine. Try this:
when HTTP_RESPONSE {
if { [HTTP::is_redirect] && [HTTP::header Location] contains "/cfcc/login/login.jsp" } {
log local0. "Client [IP::client_addr] Rewriting from [HTTP::header Location]"
HTTP::header replace Location [string map -nocase "/cfcc/login/login.jsp /" [HTTP::header Location]]
log local0. "Client [IP::client_addr] Rewritten to [HTTP::header Location]"
}
}
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
