spalande
Sep 13, 2013Nacreous
HTTP::redirect iRule
We are using redirect command in HTTP request event to redirect to another VS if specific string is there in URI.When request land on VS1, it should redirect to VS2 and should come up the page once SSO authentication is successful.
But getting SSO failing error. However, when try to launch same page using VS2 (i.e without redirection) it works fine. Redirection is working fine from VS1 to VS2.only diff I'm seeing is when we use VS2 directly I'm able to see 302 HTTP response from server. Also, tried using HTTP::respond 301 or 302 instead of HTTP::redirect in Irule, still no luck. Below is the iRule we are using for redirection.
What else needs to be checked?? when HTTP_REQUEST {
if { [string tolower $uri] contains "/cat"}
HTTP::redirect "https://$static::http_throttle_catURL$uri"
}