F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

slackwaresuppor's avatar
slackwaresuppor
Icon for Nimbostratus rankNimbostratus
Jun 09, 2008

exceptions to redirects

can anyone help with this..

 

its not working

 

 

my code

 

 

class noSSL {

 

myutil

 

util_forum

 

}

 

 

when HTTP_REQUEST {

 

if { [matchclass [HTTP::uri] ends_with $::noSSL] } {

 

HTTP::redirect http://[HTTP:host][HTTP:uri]

 

}

 

}

 

 

 

 

error:

 

 

01070151:3: Rule [nsaonline.ch-non-https] error:

 

line 1: [undefined procedure: class] [class noSSL {

 

myutil

 

util_forum

 

}]

 

line 8: [undefined procedure: HTTP:host] [HTTP:host]

 

line 8: [undefined procedure: HTTP:uri] [HTTP:uri]

11 Replies

  • got it..

     

     

    needed to take out the

     

    HTTP::redirect http://[HTTP::host][HTTP::uri]

     

    on the nonssl irule.