Forum Discussion

safwat_ghazy_24's avatar
safwat_ghazy_24
Icon for Nimbostratus rankNimbostratus
Feb 28, 2017

convert from cisco css to F5

how to add i rule on F5 to match the following content for Cisco CSS :

 

content content-name vip address 10.10.10.1 url "/*" protocol tcp port 80 redirect "//abc.com/support" active

 

1 Reply

  • Snl's avatar
    Snl
    Icon for Cirrostratus rankCirrostratus

    hope this help

     

    Code
    

    when HTTP_REQUEST { if { [HTTP::uri] equals "/" } {

     

    HTTP::redirect "http://[HTTP::host]/support" } pool Poolname }

     

    or

     

    Code
    

    when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "abc.com" } { if { [HTTP::uri] equals "/" } {

     

    HTTP::redirect "http://[HTTP::host]/support" } pool Poolname } }