Thanks for the tip Stephan, so in the case of below where I have several redirects it should look like the below.
Also, I found out there are some requirements that I missed. Basically, we are doing a video redirect from one server to the next. That said I will need to create 2 irules for these redirects and maintain the variable from the client in the redirect. Using the irule we worked on, how do we maintain the client variable.
Redirect 1
https://media.domain.com:8443/stream/{Variable} redirect to https://InhydNimble1.domain.com/stream/{Variable}
Redirect 2
https://media.domain.com:8443/video/{Variable} redirect to https://InhydNimble1.domain.com/video/{Variable}
}
if { ([class match [IP::client_addr] equals India_Host_Networks]) and ([string tolower [HTTP::host]] equal media.domain.com") } {
HTTP::redirect " https://InhydNimble1.domain.com/"
return
}
"*change*" {
HTTP::redirect "http://site.domain.com/cm"
return
}
"*empcon*" {
HTTP::redirect "http://site.domain.com/?cmd=login"
return
}
"*im*" {
HTTP::redirect "https://site.domain.com/IntegratedLogin.asp"
return
}
"*helpdesk*" {
HTTP::redirect "https://site.domain.com/IntegratedLogin.asp"
return
}
"*ipplan" {
HTTP::redirect "https://site.domain.com/ipplan "
return
}
"*schedule" {
HTTP::redirect "http://site.domain.com/arrivemrp/ "
return
}