Forum Discussion

Kalpesh_48932's avatar
Kalpesh_48932
Icon for Nimbostratus rankNimbostratus
Feb 13, 2012

Http_referrer in iRule

Can anyone tell me how to use HTTP_Referrer in iRule...?

 

 

I have my current rule is

 

 

when HTTP_REQUEST { if {[active_members [LB:erver pool]] < 1} { HTTP::redirect "http://dev-sorry-webarch.xyz.com" } }

 

 

and is working fine for re-direction..but I need to use HTTP_Referrer in it..
  • when HTTP_REQUEST {
       if {[active_members [LB::server pool]] < 1}{
          HTTP::redirect "http://dns2.com/?origin=http://[HTTP::host][HTTP::uri]"
       }
    }