nginx 拦截以数字结尾的跳转到html页面 nginx纯数字链接

helei 2021-7-21 964 7/21

location ~*([0-9])$ {

if (!-e $request_filename){   

   rewrite ^(.*)$ /$1.html last;

   break;

}

root /www/wwwroot/cdtrans/public;

}

- THE END -

helei

7月21日09:49

最后修改:2021年7月21日
0