Forum Discussion
Zev
Altostratus
May 09, 2018Redirect/URI change based on numeric variable
I've had what I think is an interesting customer request. Although this may be a simple redirect it seems more complex and haven't been able to put all the pieces together. The customer has a URL: ...
May 09, 2018
This should work:
when HTTP_REQUEST {
if { ([HTTP::host] eq "x.123.com") && [HTTP::uri] starts_with "/123.asp" } {
set llactid [URI::query [HTTP::uri] "llactid"]
if { ($llactid ne 30484) && $llactid > 29999 } {
HTTP::redirect "https://y.abc.com/trackalyze.asp?r=&p=https%3A//site.com/&llactid=$llactid&llnocookies=undefined"
}
}
}
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