Returns a Boolean TRUE
if the response code is associated with a redirect. Following are the redirect response codes:
- 300 (Multiple Choices)
- 301 (Moved Permanently)
- 302 (Found)
- 303 (See Other)
- 305 (Use Proxy)
- 307 (Temporary Redirect)
Note: Status code 304 is not considered a redirect HTTP response status code. Status code 306 is unused.
In the following example, the rewrite action replaces http in
the Location header of an HTTP response with https if the
response is associated with an HTTP redirect.
add rewrite action redloc replace
add rewrite policy pol1 HTTP.RES.IS_REDIRECT
bind rewrite global pol1 100