C_D_18583
Aug 04, 2005Nimbostratus
IRule and Error Checking
Please See comments below
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/channel/" } {
pool QA1
}
elseif {[HTTP::uri] starts_with "/performance/" } {
pool QA2
}
elseif { [HTTP::uri] starts_with "/lead/" } {
pool QA3
}
Please review the irule
I want the user to end the URI with /. If this is not done, I need
to redirect the request with the "/" at the end.
The statement below does NOT
work. What is the best way to write this.
elseif { not[HTTP::uri] ends_with "/" } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]/"
}
else {
discard
}
}