location /{
rewrite ^([a-z]+)/p-([0-9]+)\.htm$ /HBclass\.php\?lanmu=$1&p=$2;
rewrite ^([a-z]+)/([a-z]+)\.htm$ /HBclass\.php\?lanmu=$1&p=$2;
rewrite ^([a-z]+)/$ /HBclass\.php\?lanmu=$1&p=$2;
rewrite ^([a-z]+)$ /HBclass\.php\?lanmu=$1&p=$2;
rewrite ^([a-z]+)/d-([0-9a-z\-]+)\.htm$ /article\.php\?lanmu=$1&id=$2;
rewrite ^([a-z]+)/a-([0-9]+)\.htm$ /all\.php\?lanmu=$1&a=$2;
rewrite ^([a-z]+)/tag-(.*)-([0-9]+)$ /tag\.php\?lanmu=$1&tag=$2&page=$3;
rewrite ^([a-z]+)/tag-(.*)\.htm$ /tag\.php\?lanmu=$1&tag=$2;
rewrite ^go/act/(.*)/([0-9a-z\-]+)\.php$ /zhuanti\.php\?cat1=$1&cat=$2;
rewrite ^index\.htm /index\.php;
}
# location /{
# if (!-f $request_filename) {
# rewrite ^/([0-9]*).html$ /t.php?id=$1;
# }
# }