全球主机交流论坛
标题:
用这个这个伪静态,生成的静态文件就打不开了
[打印本页]
作者:
sdfarmer
时间:
2017-4-10 13:36
标题:
用这个这个伪静态,生成的静态文件就打不开了
location / {
rewrite "^/(.+?)-(.+?)-(.+?)\.html$" /e/action/ListInfo.php?classid=$1&ph=1&fenlei=$2&tempid=$3 last;
}
已经生成静态文件的内容页面/xx/2016-10-03/43861.html打不开了
作者:
klon99
时间:
2017-4-10 14:45
干脆把html改成htm
作者:
天九
时间:
2017-4-10 14:57
location / {
if (!-e $request_filename) {
rewrite "^/(.+?)-(.+?)-(.+?)\.html$" /e/action/ListInfo.php?classid=$1&ph=1&fenlei=$2&tempid=$3 last;
}
}
复制代码
试试
作者:
cgs3238
时间:
2017-4-10 15:20
location / {
try_files $uri $uri/ @weijingtai;
}
location @weijingtai {
rewrite "^/(.+?)-(.+?)-(.+?)\.html$" /e/action/ListInfo.php?classid=$1&ph=1&fenlei=$2&tempid=$3 last;
}
复制代码
欢迎光临 全球主机交流论坛 (https://loc.1226.eu.org/)
Powered by Discuz! X3.4