Forum Discussion
SudheerG
Apr 04, 2019Nimbostratus
Re-write URI on server response
I need to modify the URI in the HTTP Response. My VIP is listening on 443 and Pool members are on 80.
Client request has "/abc/app/index.html/xyz" as the URI and server response removes " index.html"...
youssef1
Apr 05, 2019Cumulonimbus
Hi,
the response of the server is 302? if yes try this irule:
when HTTP_RESPONSE {
if { [HTTP::status] contains "302" && [string tolower [HTTP::header Location]] contains "/abc/app//xyz" } {
HTTP::header replace Location [string map -nocase {"/abc/app//xyz" "/abc/app/index.html/xyz"} [HTTP::header Location]] }
}
}
Regards
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