阅读:5580回复:6
DiscuzX3.2默认全选伪静态规则
N版
rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last; rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last; 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 ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last; rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last; rewrite ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last; rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last; rewrite ^([^\.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3 last; if (!-e $request_filename) { return 404; } |
|
最新喜欢:动力火锅 |
沙发#
发布于:2015-07-18 12:08
恩学习了!!!!!
|
|
|
板凳#
发布于:2015-08-16 22:41
具体怎么用呢
|
|
地板#
发布于:2015-09-25 08:57
|
|
4楼#
发布于:2015-12-22 15:42
请问 是放在那个目录下呀!放在跟目录不行 放在 Nginx\conf 目录下也不行
|
|
5楼#
发布于:2016-01-16 20:36
|
|
6楼#
发布于:2016-03-08 21:38
|
|