Forum Discussion
Donyemachi
Nimbostratus
Aug 05, 2019uri rewriting
I have a requirement to perform uri rewriting based on specific conditions. I have tried using "http:redirect" method but this converts the HTTP method from "POST" to "GET" when the client tries to ...
Aug 05, 2019
Can you try this?
when HTTP_REQUEST {
if { [HTTP::uri] equals "/abcd/1/0/notify" } {
HTTP::uri "/xyz/1/0/rest/notify"
pool POOL1
}
}If you don't want to change method, you use "307 redirect".
HTTP::respond 307 Location "https://test.example.com"- DonyemachiAug 07, 2019
Nimbostratus
Thanks Mate. The first option worked perfectly. I was able to rewrite the URIs. I appreciate !!!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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