Forum Discussion
Mar 23, 2015
Hi,
the "starts_with" comparison should do the job:when HTTP_REQUEST {
if {[string tolower [HTTP::uri] starts_with "/erma/login.htm?action=search&token="} {
HTTP::redirect "https://ecms.epa.gov/erma2/login.htm?action=search"
}
}
Please keep in mind, that query parameters in different order will break the logic.
With[HTTP::path]
and [HTTP::query]
you have access to the URI components.
Use [string tolower ]
to be case insensitive.
Thanks, Stephan