Forum Discussion
Hamza_derbali
Oct 05, 2024Altostratus
Rewriting Location Header in iRule
Hello everyone, I'm trying to find a way to manipulate the HTTP::header location. For each redirection containing a location header from the backend server, I need to rewrite just the host part of ...
- Oct 06, 2024
Hi Hamza,
when HTTP_RESPONSE { if { [HTTP::header Location] starts_with "http://webserver01:8282"} { HTTP::header replace Location [string map {"http://webserver01:8282" "https://externallink.com"} [HTTP::header Location]] } }
Hamza_derbali
Oct 07, 2024Altostratus
Thanks.
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