Forum Discussion

3 Replies

  • This seems pretty straight forward. Are you having trouble making it work?

     

     

    If the individual rules work, then this should work.

     

     

    when HTTP_REQUEST {

     

    if { [HTTP::host] contains "abcscommercial-dev.fs-nafta.india.com" } {

     

    HTTP::redirect https://dfindia-dev.fs-nafta.india.com/inet/en/mbsprinter/common/home.do

     

    }

     

    elseif { [HTTP::host] contains "abccommercial-dev.fs-nafta.india.com" } {

     

    HTTP::redirect https://dfindia-dev.fs-nafta.india.com/inet/en/mbsprinter/common/home.do

     

    }

     

    else {

     

    HTTP::redirect https://www.dfindia-dev.fs-nafta.india.com[HTTP::uri]

     

    }

     

    }