CB,
Thank you for the information. Unfortunately the code did not work as the F5 complained about invalid syntax and statements. But I took your logic and applied to my exiting rules and made considerable progress... As it turns out my pgLogin.jsp makes several HTTP requests with that URI variable (dev, test, train) for images and such, which partially broke my web page. I then inserted a nested if statement to indicate that if the initial request ends with the URI variable (test, train, dev) go to the Login page, otherwise keep loading.
when HTTP_REQUEST {
log local0. "Current URI: [HTTP::uri]"
if {[HTTP::uri] starts_with "/test" }{
if {[HTTP::uri] ends_with "/test" }{
HTTP::uri "/test/jsp/common/pgLogin.jsp"
}
pool state_test_pool
} elseif {[HTTP::uri] starts_with "/dev"}{
if {[HTTP::uri] ends_with "/dev" }{
HTTP::uri "/dev/jsp/common/pgLogin.jsp"
}
pool state_dev_pool
} elseif {[HTTP::uri] starts_with "/train"}{
if {[HTTP::uri] ends_with "/train" }{
HTTP::uri "/train/jsp/common/pgLogin.jsp"
}
pool state_train_pool
}
}
I hope this makes sense..if I might ask, is there an easier way to write this? it seems kind of clugy at best
thanks again,
Greg