nginx伪静态问题
正常的伪静态
rewrite ^/category-catid-([0-9]+)/([-~\w]+)-([-\w]+)/([_-\w]+)-([-~\w]+)/([-\w]+)-([_-\w]+)/([-~\w]+)-([-~\w]+).html$ /category.php?catid=$1&$2=$3&$4=$5&$6=$7&$8=$9 last;
前端显示 访问正常
/category-catid-33/areaid-11662/from-2/carbrand-17/chexing-2.html
但是伪静态规则中的html去掉以后就出现404错误了
rewrite ^/category-catid-([0-9]+)/([-~\w]+)-([-\w]+)/([_-\w]+)-([-~\w]+)/([-\w]+)-([_-\w]+)/([-~\w]+)-([-~\w]+)$ /category.php?catid=$1&$2=$3&$4=$5&$6=$7&$8=$9 last;
我想要这种效果,但是就是不行,网上搜索了一大堆,都还是不行
/category-catid-33/areaid-11662/from-2/carbrand-17/chexing-2