redirectplus


Respond to the client request with a redirect without contacting the origin. This behavior fills the same need as redirect, but allows you to use variables to express the redirect destination's component values more concisely.

OptionTypeDescriptionRequires
enabledboolean

Enables the redirect feature.

{"displayType":"boolean","tag":"input","type":"checkbox"}
destinationstring (allows variables)

Specifies the redirect as a path expression starting with a / character relative to the current root, or as a fully qualified URL. Optionally inject variables, as in this example that refers to the original request's filename: /path/to/{{builtin.​AK_​FILENAME}}.

{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"enabled","op":"eq","value":true}}
response​Codeenum

Assigns the status code for the redirect response.

{"displayType":"enum","options":["301","302","303","307"],"tag":"select"}
{"if":{"attribute":"enabled","op":"eq","value":true}}
Supported values:
301
302
303
307