首页 > 求一个nginx的规则

求一个nginx的规则

访问http://123.com/976513.html?h跳转到http://123.com/976513.html,要求泛规则,凡是URL后面带参数的通通跳转到不带参数的RUL


rewrite ^/(\d+).html\?(.*) ^/$1.html last;

【热门文章】
【热门文章】