业务需求
location / {
if ($request_uri ~* ^/\?id\=(.*)\&type\=(\d)$) {
return 307 https://shtlc.xxxx.cn/micro_code/customize?id=$arg_id;
}
try_files $uri $uri/ /index.html;
}
原文:https://www.cnblogs.com/wangyang0210/p/13282271.html