用这个这个伪静态,生成的静态文件就打不开了
location / {rewrite "^/(.+?)-(.+?)-(.+?)\.html$" /e/action/ListInfo.php?classid=$1&ph=1&fenlei=$2&tempid=$3 last;
}
已经生成静态文件的内容页面/xx/2016-10-03/43861.html打不开了 干脆把html改成htm [*]location / {
[*] if (!-e $request_filename) {
[*] rewrite "^/(.+?)-(.+?)-(.+?)\.html$" /e/action/ListInfo.php?classid=$1&ph=1&fenlei=$2&tempid=$3 last;
[*] }
[*]}复制代码
022.gif
试试 [*]location / {
[*] try_files $uri $uri/ @weijingtai;
[*]}
[*]
[*]location @weijingtai {
[*] rewrite "^/(.+?)-(.+?)-(.+?)\.html$" /e/action/ListInfo.php?classid=$1&ph=1&fenlei=$2&tempid=$3 last;
[*]}复制代码
页:
[1]