rewrite ^([^.]*)/list-?([0-9]+)?\.html$ $1/list.php?classid=$2 last;
rewrite ^([^.]*)/list-(.+?)-(.+?)\.html$ $1/list.php?page=$2&classid=$3 last;
rewrite ^([^.]*)/show-(.+?)-(.+?)\.html$ $1/show.php?classid=$2&id=$3 last;
if (!-e $request_filename) {
return 404;
}
rewrite ^([^.]*)/list-(.+?)-(.+?)\.html$ $1/list.php?page=$2&classid=$3 last;
rewrite ^([^.]*)/show-(.+?)-(.+?)\.html$ $1/show.php?classid=$2&id=$3 last;
if (!-e $request_filename) {
return 404;
}