Forum Discussion
Dassy_165659
Nimbostratus
Aug 04, 2014How to write redirect a URL with all except one
Hi,
I want to write an iRule with following requirements
I have two application servers with one URL & that serves as follows
1-http://xyz.com/ (one application)
2-http://xyz.com/abc(2nd ap...
nathe
Cirrocumulus
Aug 04, 2014Would this work? Have a default pool for xyz.com attached to the VS and another pool called abc_app (for example) with the abc app server in it.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/abcredirect*" {
HTTP::uri "/"
}
"/abc*" {
pool abc_app
}
}
}
Hope this helps,
N
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