Forum Discussion
ant77
Cirrostratus
Feb 22, 2021Redirect to new URL, but keep certain part of the original URI path.
Hi All, Can you guys help with this unique requirement? We need to match based on the URI the client comes in on (IAM), than redirect to a new URL while changing IAM to IAM2, and keeping their...
Feb 22, 2021
Hi ant77,
when HTTP_REQUEST {
if { [HTTP::host] equals "test.abc.com" and [HTTP::uri] starts_with "/IAM/" } {
set temp_uri [string map {/IAM/ /IAM2/} [HTTP::uri]]
HTTP::respond 307 Location "https://new.abc.com$temp_uri"
}
}
- ant77Feb 23, 2021
Cirrostratus
This works! Thank you very much Enes Afsin Al...
Appreciate your help!
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