Forum Discussion
newf5learner_13
Mar 15, 2017Nimbostratus
irule for URI based redirection and to the pool..
Hi,
I'm looking for a short irule that helps in two ways.
URI redirection Host based pool selection
I currently have two irules, I'm looking for one combined irule that serves the purpos...
Amine_Kadimi
Mar 15, 2017MVP
Hi,
Just rearranging the code a bit may answer the question:
when HTTP_REQUEST {
switch -glob [ string tolower [HTTP::host]] {
"eng.page3.com" {
if {[HTTP::uri] starts_with "/ClientService/BI-Integration/"} {
HTTP::redirect "/clientapp[HTTP::uri]"
}
else {pool page3_https_pool }
}
"eng.devpage3.pega.com" { pool devpage3_https_pool }
default { HTTP::respond 404 noserver }
}
}
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