Dear team,
I am getting confused with the error below.
Could you tell me what is wrong with my iRule or data group?
TCL error: /Common/RedirectToHTTPS - can’t read “::RedirecttoHTTPSURI”: no such variable while executing “class match [string tolower [HTTP::uri]] equal s $::RedirecttoHTTPSURI”
which made from following iRule"RedirectToHTTPS"
when HTTP_REQUEST { log local0. “[IP::client_addr] → [HTTP::host][HTTP::uri][HTTP::header User-Agent]”
if { ([class match [string tolower [HTTP::uri]] equals $::RedirecttoHTTPSURI] ) } {
HTTP::redirect “https://[HTTP::host][HTTP::uri]”
}
example of data group “RedirecttoHTTPSURI” is following,
String: /p/x/yyy/zzz/index.html
Value: /p/x/yyy/zzz/index.html
I really appreciate with your help.