Forum Discussion
dirken
Nimbostratus
May 02, 2012remove tcp port from Location header in redirect
Hi folks, newbie and tasked to remove the tcp port from a redirect's Location header. Without a test system I cannot check it and would appreciate any feedback before going live. Would this iRule work...
MiLK_MaN
Nimbostratus
May 02, 2012Try:
when HTTP_RESPONSE {
if { [HTTP::is_redirect] } {
HTTP::header replace Location [getfield [HTTP::header value Location] : 1]
}
}
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