Forum Discussion
Kevin_Stewart
Dec 18, 2013Employee
The idea for option 2 was to set a variable and then act on it once. So for example:
when HTTP_REQUEST {
if { some condition } {
set redir "/foo"
} elseif { some other condition } {
set redir "/bar"
}
...
if { [info exists redir] } {
HTTP::respond 301 $redir
}
}