文档
测试

新增跳转

POST
http:/domain/api/front/subhost/rewrite/add

请求头

参数名
类型
描述
必填
Content-Type:application/json
sring
必填
Authorization
string
例如:Bearer token值
必填

请求参数

参数名
类型
描述
必填
sub_host
string
根域名
必填
scheme
string
http方式,填:http,https
必填
http_code
int
状态码,填:301,302,307
必填
prefix_host
string
域名前缀,如:如:www,(.*)
必填
suffix_host
string
域名目录,如:/abc,/(.*)
必填
redirectUri
string
跳转地址,如:http://www.tiaozhuan.com
必填

返回参数

参数名
类型
描述
必填
data
json
必填
id
int
跳转id
必填
rcondUri
string
跳转源域名(提交参数组成的域名) rcondUri = http://www.1.com/(.*)$ = scheme + prefix_host + sub_host + suffix_host
必填
redirectUri
string
跳转至域名
必填

说明 / 示例

请求示例: ``` { "sub_host":"1.com", "scheme": "http", "http_code":307, "prefix_host":"www", "suffix_host":"/(.*)", "redirectUri":"http://www.baidu.com" } ``` 返回参数示例: ``` { "code": 1, "msg": "success", "data": { "id": 2, "rcondUri": "http:\/\/www.1.com\/(.*)$", "redirectUri": "http:\/\/www.baidu.com" } } ```