Forum Discussion

jato_40959's avatar
jato_40959
Icon for Nimbostratus rankNimbostratus
Jun 02, 2010

Redirect 301

I have implemented this irule in my system:

 

 

when HTTP_REQUEST {

 

HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri]

 

}

 

 

The irule isn't working, i found this message in logs:

 

Jun 1 09:49:11 local/tmm1 err tmm1[26096]: 01220001:3: TCL error: HTTP_To_HTTPS_Redirect_301 - Operation not supported. Multiple redirect/respond invocations not allowed (line 1) invoked from within "HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri]"

 

Jun 1 10:24:44 local/tmm2 err tmm2[26097]: 01220001:3: TCL error: HTTP_To_HTTPS_Redirect_301 - Operation not supported. Multiple redirect/respond invocations not allowed (line 1) invoked from within "HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri]"

 

 

Can anyone help me?

 

 

Thanx in advance and regards

 

18 Replies