Forum Discussion
Claudio_Soares
Nimbostratus
Aug 21, 2020URI String manipulation
Hello all, Need help in manipulating URI I need to redirect from https://domain1/fixedURI/randomURI to https://domain2/randomURI I need to loose the fixedURI in the redirect proce...
Aug 21, 2020
Hi Cláudio Soares,
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/fixedURI/" && [HTTP::host] equals "domain1" } {
set newUri [string trimleft [HTTP::uri] /fixedURI]
HTTP::redirect "https://domain2$newUri"
}
}
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