求一个nginx的规则


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

nginx rewrite

愤怒的麦兜 10 years ago

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

寂靜威尼斯 answered 10 years ago

Your Answer