Forum Discussion
Stanislas_Piro2
Jun 02, 2017Cumulonimbus
Hi,
you can try this code:
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "abc.com" && !([HTTP::path] starts_with "/act" )}{
HTTP::respond 301 Location "/act[HTTP::uri]"
log local0. "[HTTP::uri] redirected to /act[HTTP::uri]"
return
}
}