Forum Discussion

Mike_Graston_10's avatar
Mike_Graston_10
Icon for Nimbostratus rankNimbostratus
Oct 13, 2006

Multi redirects in Irule

I need to send redirect from an Http site to two different locations. I put toghther this redirect rule and was wondering if it look ok?

 

 

when HTTP_REQUEST {

 

if { [HTTP::uri] contains "/abc"} {

 

 

HTTP::redirect "https://myweb.com/abc/"

 

}

 

 

if { [HTTP::uri] contains "/def"} {

 

 

HTTP::redirect "https://myweb.com/def"

 

 

} else {

 

pool www-myweb-com-http

 

}

 

}