[求助] nginx dz 伪静态

2018-10-26 18:15

nginx dz 伪静态
rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;if (!-e $request_filename) {   ,11149马会开奖结果;     return 404;}
这段代码要放在 NGINX.CONF配置文件的哪个地方?