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
}
marv_Williams_5
Sep 11, 2015Nimbostratus
The values and placement of tid and eid chnage. I was hoping at least tid and eid would remain static. The request uses a number that the user has and they enter the entire url with the dynamic number. The redirect then contains new dynamic information after egift.aspx?. Also I am using 11.5.0 currently and did not think of policy but could try it
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