You could use a switch statement for this. You can try something like this:
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::method] to [HTTP::host][HTTP::uri]"
switch -glob [string tolower [HTTP::uri]] {
"/about/communityprocess/maintenance/JMF2.0/hello.html" {
log local0. "[IP::client_addr]:[TCP::client_port]: Redirecting to http://abc.com/landingpage/hello.html"
HTTP::redirect "http://abc.com/landingpage/hello.html"
}
"/about/communityprocess/*" {
log local0. "[IP::client_addr]:[TCP::client_port]: Redirecting to http://abc.com/landingpage/"
HTTP::redirect "http://abc.com/landingpage/"
If you need to take part of the original URI and include it in the redirect, you can use getfield to split it:
HTTP::redirect "http://abc.com/landingpage/[getfield [HTTP::uri] "/about/communityprocess/" 2]"
}
}
}
Aaron