f5beginner
Jun 24, 2019Cirrostratus
Error logs TCL script HTTP:host
Hello, I´m using this irule:
when HTTP_REQUEST {
# Check if the host starts with www.
if {[string tolower [HTTP::host]] starts_with "www."}{
# Redirect with the www. prefix removed to the same URI
HTTP::redirect "http://[string range [HTTP::host] 4 end][HTTP::uri]"
}
}
And it works, but I receiving error logs on my F5:
TCL error: /Common/Remove_WWW <HTTP_REQUEST> - ERR_NOT_SUPPORTED (line 2) invoked from within "HTTP::host"
Do someone know, what could be a problem ?
Above mentioned tcl script is from this site: https://devcentral.f5.com/s/question/0D51T00006i7XsO/multiple-ssl-cert-on-1-vip-question
Thank you