Forum Discussion
Stanislas_Piro2
Dec 01, 2015Cumulonimbus
There is a "how to format" link on the top right corner...
I don't see any error on the code:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/owa" } {
HTTP::respond 301 Location "https://mynewurl.co.uk"
} elseif { [ class match [string tolower [HTTP::uri]] contains web-exchange-external-datagroup ] } {
return
} else { drop}
}
But in your first request, you wanted to do it with a policy...
you can create a local traffic policy to do the same:
- requires : http
- controls : forwarding
- Strategy : first-match
- rule 1:
- condition : http-uri path starts_with /owa
- action : http-reply redirect Location : "https://mynewurl.co.uk"
- rule 2:
- condition : http-uri path starts_with /autodiscovery /etc ...
- action : none
- rule 3:
- condition : none
- action : forward reset