Forum Discussion

sim3_251119's avatar
sim3_251119
Icon for Nimbostratus rankNimbostratus
Feb 24, 2016

iRule HTTP to HTTPS generic TCL error

We created the below generic HTTP to HTTPS iRule to redirect all the HTTP virtual server to HTTPS

when HTTP_REQUEST {
    HTTP::redirect https://[HTTP::host][HTTP::uri]\
}

However in the syslog it is showing this error

TCL error: /Common/HTTP_to_HTTPS_generic  - Operation not supported. Multiple redirect/respond invocations not allowed (line 1)     invoked from within "HTTP::redirect https://[HTTP::host][HTTP::uri]"

How could we resolve it? Thanks in advance!