nginx 伪静态大于10个参数 $10

伪静态大于10个参数   会解析成 $1   与 0

 

参考:http://zhidao.baidu.com/link?url=kT2tp8ARhIZsrt4XF3LdzjkEq0QTIbvhOj9CkDDXkpN6Tf1vNSVr9e506WgireOnmxpUU6FoAXAUkzaHxpwg3BU1GYPaheryE6cMCLUDJ1y

改成

rewrite  ^(.*)list-31&v=([0-9]+)&s=([0-9]+)&ml=([0-9]+)&c=([0-9]+)&a=([0-9]+)&p=([0-9]+)&md=([0-9]+)&od=([0-9]+)-(?'n0'[0-9]+)\.html$  $1/list.php?catid=31&v=$2&s=$3&ml=$4&c=$5&a=$6&p=$7&md=$8&od=$9&page=$n0 last;

把第10参数   (?'n0'[0-9]+)        $no

 

你可能感兴趣的:(nginx)