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 。
CANSTAYN569_243
Nimbostratus
Oct 19, 2016when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/mvpvote"} {
pool Pool_Test.com:8080
}
}
So i would create a new pool that has the same servers but the port is 8080. I would redirect the requests to that pool. Also since i did not modify the full uri, you would need to change the path to content. (You would need to put it below mvpnote folder)
Regards
denny_65237
Nimbostratus
Oct 19, 2016thanks ,But how to cut /mvpvote/xxxx to /xxxx
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