Forum Discussion
jdewing
Cirrus
Nov 05, 2009URI Redirection
I'm new to IRule. I need to write a IRule to redirect to a specific server in the pool based on the path.
For example, https://Server1.com/ExportData should redirect to https://192.1...
The_Bhattman
Nimbostratus
Nov 05, 2009If you want to redirect the client to a specific server then you could do the following
when HTTP_REQUEST {
if { [HTTP::uri] eq "/ExportData" } {
HTTP::redirect "http://192.168.1.10/[HTTP::uri]"
}
}
I hope this helps
CB
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