I used the default cookie persistence profile (insert mode) and applied the iRule you suggested. I believe persistence is working correctly, but the website reports a redirect loop:
If I update the iRule to use HTTP:path and remove the trailing '/' - Will that prevent it from looping, or do I have to use an " & amp & " operators with a string? Any helpful debug log statements are appreciated. Still learning
🙂 when HTTP_REQUEST {
log local0.debug "using persistence"
switch -glob [string tolower [HTTP::path]] {
"/client" { pool athoc_pool_1 }
default {
persist none
HTTP::redirect "http://[HTTP::host]/csi"
log local0.debug "using redirect"
}
}
}
-TJ