Forum Discussion

Stevie_112040's avatar
Stevie_112040
Icon for Nimbostratus rankNimbostratus
Jul 13, 2009

Redirecting only a subset of my VS web site

Hi!

 

 

I need to redirect https requests to one directory of my VS (example : https://www.nestor.com/tintin) to a web site (example : http://www.haddock.com/milou/dupond).

 

 

I am not familiar with irules...

 

 

Thanks,

 

 

Strou16
  • Here is an example.

     
     when HTTP_REQUEST{  
       if { ([HTTP::host] eq"www.nestor.com") and ([HTTP::host] eq"/tintin") } {  
       HTTP::redirect "http://www.haddock.com/milou/dupond"  
       }  
     } 
     
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    This will work on https requests so long as you're decrypting the SSL on your BIG-IP. Otherwise you won't be able to inspect the headers to see what the host of the request is.

     

     

    Colin