Forum Discussion
marv_Williams_5
Sep 10, 2015Nimbostratus
Redirecting URI and Dynamic Content
I am struggling to get this to work. Here is the scenario:
https://mycompany.com/virtual.aspx?code=....&type=....
Redirect to:
https://egift.mycompany.com/egift.aspx?eid=.....&tid=.....
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.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects