ModifyRedirect
修改指定网站已有重定向规则的目标 URL、域名等配置。
参数与 CreateRedirect 相同,以 sitename + redirectname 定位要修改的规则。
- 路由:
POST /site - action:
ModifyRedirect
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| status | Boolean | true 修改成功 |
示例
请求
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": "修改成功"}