Skip to content
Myra Online Help Updated · 21 Aug 2026

Setting an HTTP status and redirecting

Warning

A plain HTTP status code without a redirect target cannot be set via a WAF rule.

A WAF rule with the Set HTTP Status action allows you to redirect requests with a status code and a target URL.

example_HTTP_status_EN

Rule: Redirect via HTTP status

For example, proceed as follows to redirect requests from a specific IP address to a maintenance page:

  • Select Request as the request method.
  • Add the Remote IP condition.
  • Select the EXACT operator from the drop-down list.
  • Enter 1.2.34.4 as the value.
  • Add the Set HTTP Status action.
  • Select 302 as the status code.
  • Enter the target URL https://google.com as the value.