完整填充的批量重定向规则对象具有以下 JSON 结构:
{
"action": "redirect",
"expression": "http.request.full_uri in $<LIST_NAME>",
"action_parameters": {
"from_list": {
"name": "<LIST_NAME>",
"key": "http.request.full_uri"
}
}
}JSON 对象属性须符合以下要求:
-
action必须为redirect -
action_parameters必须包含带有附加设置的from_list对象。 -
from_list必须包含以下属性: -
expression必须引用key属性中使用的请求字段。更多信息请参阅 批量重定向概念。
完整填充的 URL 重定向列表项对象具有以下 JSON 结构:
{
"id": "7c5dae5552338874e5053f2534d2767a",
"redirect": {
"source_url": "https://example.com/blog",
"target_url": "https://example.com/blog/latest",
"status_code": 301,
"include_subdomains": false,
"subpath_matching": false,
"preserve_query_string": false,
"preserve_path_suffix": true
},
"created_on": "2021-10-11T12:39:02Z",
"modified_on": "2021-10-11T12:39:02Z"
}有关 redirect 对象属性的详细信息,请参阅 URL 重定向参数。