Forum Discussion

yuanqiang_22112's avatar
yuanqiang_22112
Icon for Nimbostratus rankNimbostratus
Sep 01, 2016

http string redirect

hello ,please help me look at below irules,I'm not sure whether it is correct :

 

when HTTP_REQUEST { if { [HTTP::host] contains "jiedaibao.com"} { HTTP::redirect "http://www.jiedaibao.com" } }

 

1 Reply

  • This looks to be good as provided by you. Are you not seeing it work properly ? what is your expectation ?

    when HTTP_REQUEST { 
    if { [HTTP::host] contains "jiedaibao.com"} { 
    HTTP::redirect "http://www.jiedaibao.com" 
    } 
    }