差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

amh4.2:nginx_rewrite_rule:discuz [2017/05/26 16:01] (当前版本)
root 创建
行 1: 行 1:
 +=====discuz 7.2 在nginx下的伪静态规则===== 
 +\\ 
 +\\ 
 +<​code>​ 
 +location / 
 +
 +rewrite ^(.*)/​archiver/​((fid|tid)-[w-]+.html)$ $1/​archiver/​index.php?​$2 last; 
 +rewrite ^(.*)/​forum-([0-9]+)-([0-9]+).html$ $1/​forumdisplay.php?​fid=$2&​page=$3 last; 
 +rewrite ^(.*)/​thread-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/​viewthread.php?​tid=$2&​extra=page%3D$4&​page=$3 last; 
 +rewrite ^(.*)/​profile-(username|uid)-(.+).html$ $1/​viewpro.php?​$2=$3 last; 
 +rewrite ^(.*)/​space-(username|uid)-(.+).html$ $1/​space.php?​$2=$3 last; 
 +rewrite ^(.*)/​tag-(.+).html$ $1/​tag.php?​name=$2 last; 
 +
 +</​code>​
最后更改: in 2017/05/26 16:01