跳到主要内容
版本:latest

ModifyRedirect

修改指定网站已有重定向规则的目标 URL、域名等配置。

参数与 CreateRedirect 相同,以 sitename + redirectname 定位要修改的规则。

  • 路由POST /site
  • actionModifyRedirect

输出参数

参数名称类型描述
statusBooleantrue 修改成功

示例

请求

POST /site HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded

action=ModifyRedirect&sitename=testapi.bt.local&redirectname=old_site&tourl=http://newtarget.com&redirectdomain=["old.example.com"]&redirectpath=/&redirecttype=path&type=0&domainorpath=path&holdpath=0

响应

{"status": true, "msg": "修改成功"}