求一个nginx的规则


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

nginx rewrite

愤怒的麦兜 9 years, 11 months ago

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

寂靜威尼斯 answered 9 years, 11 months ago

Your Answer