Forum Discussion
Nicolas_Menant
Mar 03, 2008Employee
You can use multiple when yes.
Otherwise to match multiple URIs you can use something like switch.
An extract from one of the link i sent you
when HTTP_REQUEST {
switch -glob [HTTP::URI] {
"/" { HTTP::redirect "https://[HTTP::host]/PortalWAR/appmanager/portal/home" }
"/blah/blah*" { HTTP::redirect "https://[HTTP::host]/[HTTP::uri]" }
"*blah" { HTTP::redirect "https://[HTTP::host]/[HTTP::uri]" }
"blah*" { HTTP::redirect "https://[HTTP::host]/[HTTP::uri]" }
"b?ah" { HTTP::redirect "https://[HTTP::host]/[HTTP::uri]" }
}
}
}
Here all those URI will be redirected to something else.
Here you have an example with some regexp.