Forum Discussion

2 Replies

  • Hi,

     

     

    Which LTM version are you doing this on? There was a bug with HTTP::path fixed in 10.2.1HF1. If you could use 10.2.1HF1 or higher this would be simpler to do.

     

     

    Aaron
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    If you're on v9 or later then you'd need a Client SSL profile to decrypt the SSL, and an iRule that looks something like:

    
    when HTTP_REQUEST {
      if { ([HTTP::host] eq "www.yyy.com") and ([HTTP::uri] eq "/product/catalog/index.cgi?catalog=3455")} {
        HTTP::redirect "https://zzz.ccc.com[HTTP::uri]"
      }
    }
    

    This, of course, is specific to this one host and URI. If you want to do more than that, we can be more generic as well, such as:

    
    when HTTP_REQUEST {
      if {[HTTP::host] eq "www.yyy.com"} {
        HTTP::redirect "https://zzz.ccc.com[HTTP::uri]"
      }
    }
    

    Which would redirect all traffic from one host to the other.

    Colin