Forum Discussion
Opher_Shachar_6
Nimbostratus
Thats what a LTM Policy would look like:
ltm policy mycompany.com_policy {
controls { forwarding }
requires { http }
rules {
egift {
actions {
0 {
http-reply
redirect
location https://456.mycompany.com[HTTP::uri]
}
}
conditions {
0 {
http-host
host
values { 123.mycompany.com }
}
1 {
http-uri
path
values { /egift.aspx }
}
}
ordinal 1
}
}
strategy first-match
}
Stanislas_Piro2
Sep 11, 2015Cumulonimbus
I agree with you, policy is the easiest solution to redirect, assign pools, rewrite headers...
The problem is the irule does exactly the same as your policy and does not solve the issue.
that's why I asked marv Williams to explain what are differences between the initial request and the redirect URL.