资讯

展开

nginx实现带id参数的301跳转方法

作者:快盘下载 人气:
if ($request_uri ~* "^/web5/YCMS_ShowArt2.asp?id=(d+)$") {
 set $myarg1 $1;
 rewrite .* https://www.kkpan.com/mulu/$myarg1.html? permanent;
}


nginx实现带id参数的301跳转方法

rewrite ^/web5$ https://www.kkpan.com/hanyuxinwen/ permanent;


个人理解


捕获的元祖(d+) 是$1 赋值给¥myarg1  注意那个?号



加载全部内容

相关教程
猜你喜欢
用户评论
快盘暂不提供评论功能!