Forum Discussion
Stanislas_Piro2
Apr 05, 2017Cumulonimbus
Hi,
Are PATH and QUERY in irule real ones?
In your examples and irules, you wrote:
- cart=true
- car=true
- car=ture
the following irule may work for car=true
when HTTP_REQUEST {
switch -glob -- [string tolower [HTTP::path]] {
"/shop/window.yes" {
if { [string tolower [URI::query [HTTP::uri] "car" ] ] equals "true" } {
HTTP::redirect "/shop/door.yes?[HTTP::query]"
}
}
"/shop/* {
pool example-pool
persist none
}
}
}