Forum Discussion
marv_Williams_5
Nimbostratus
Sep 10, 2015Redirecting 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=.....
DevBabu
Cirrus
Sep 10, 2015can this be done this way
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "mycompany.com" } {
if {[HTTP::query] != ""}
{
HTTP::respond 302 Location "https://egiftpp.mycompany.com[HTTP::path]?[HTTP::query]"
}
else
{
HTTP::respond 302 Location "https://egiftpp.mycompany.com[HTTP::path]"
}
}
}
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