Forum Discussion
Marcus_Hong_Yu
Nimbostratus
8 years agoirule to rewrite uri in http request and response
Hi Guys, really need to borrow your expertise. recently I ran into a request from our application team. they currently have an existing environment configured on LTM. They want to create a new pool o...
Marcus_Hong_Yu
Nimbostratus
8 years agohere is the irule I tried, it seem the http_request rewrite works but the http_response part not taking effect
When HTTP_REQUEST { if { [HTTP::uri] contains "/review2"} { HTTP::uri [string map {/review2 /review}[HTTP::uri]] } } When HTTP_RESPONSE { if {[class match [IP::server_addr] equails "review2_srcIP"} { HTTP:header replace Location [string map {/review /review2} [HTTP::header value Location]] STREAM::expression "@/wot@/wot2@" STREAM::enable } }
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