location /
{
rewrite ^/posid-([0-9]+)-([0-9]).html /index.php?m=content&a=newslis&posid=$1page=$2 last
rewrite ^/([a-zA-Z]+)-([a-zA-Z]+)-([0-9]+)\.html$ /index.php?m=content&c=$1&a=$2&page=$3 last
}
第一条
www.b.com/index.php?m=content&a=newslis&posid=1page=2 重写成 www.b.com/posid-9-8.html
第二条
www.b.com//index.php?m=content&c=$1&a=$2&page=$3 重写成 www.b.com/随便字符串-随便字符串-页码.html