Forum Discussion
AshuA_246482
Nimbostratus
Nov 27, 2017Redirect the traffic based on uri
Hi
I have to create a i-rule for a request mentioned below.
The users will be using the same URL, but different URIs and should be redirected to different ports and URIs on the servers.
I have tried...
Samir_Jha_52506
Noctilucent
Nov 29, 2017Try below iRule. Hope it will fit in your box.
when HTTP_REQUEST
{ if { [HTTP::uri] contains "/abc/efg/Contract" } { HTTP::redirect "http://172.27.117.69:89/acldata.asmx"}
elseif { [HTTP::uri] contains "/xyz_QuotationService" } { HTTP::redirect "http://172.27.117.69:89/ACLData.asmx" }
else { pool pool_default }
}
AshuA_246482
Nimbostratus
Nov 29, 2017Hi Only1masterblaster,
What kind of further work is expected? can you please give me some idea ?
Thanks
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
