Forum Discussion
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 }
}
}