Forum Discussion
kiamars_51328
Nimbostratus
May 18, 2009How can I get rid of the port on redirects.
Hi, I can redirect to new port, but how can i elemenated the port, I don't want to see the port that I am redirecting.
thx for your time.
1 Reply
Sort By
- hoolio
Cirrostratus
Hi,when HTTP_RESPONSE { Check if server response is a redirect if { [HTTP::header is_redirect]} { Log original and updated values log local0. "Original Location header value: [HTTP::header value Location],\ updated: [string map ":[TCP::remote_port]/ /" [HTTP::header value Location]]" Do the update HTTP::header replace Location [string map ":[TCP::remote_port]/ /" [HTTP::header value Location]] } }
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