Forum Discussion
denny_65237
Nimbostratus
Oct 19, 2016HTTP Redirect and cut out URL
client request contain url "mvpvote",for example,request http://www.test.com/mvpvote/xxxxx,I want redirect URL to http://www.test.com:8080/xxxxx, I don't how 。
Jinshu
Cirrus
Oct 19, 2016Try something like below one..
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] starts_with "/mvpvote"}{
set newuri [string map -nocase {"/mvpvote" ""}[HTTP::uri]]
HTTP::redirect "http://[HTTP::Host]:8080$newuri"
}
}
-Jinshu
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