AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 请问AMH4.2 discuz的静态规则添加到哪个文件里 |
|
---|---|
夏洛特 |
夏洛特 发表于 2014-10-09 08:12:02
discuz论坛的这个静态规则 要添加到哪个文件里,有知道的麻烦告诉下 谢谢了
Nginx Web Server
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; }
点赞,加油! (0分)
2014-10-09 08:12:02 1
|
zmyamh |
AMH 4.2好像自带discuz的伪静态规则
回复
2014-10-09 08:34:17 2
|
lvyao |
/usr/local/nginx/conf/rewrite
回复
2014-10-09 08:38:32 3
|
夏洛特 |
回复
2014-10-09 08:48:18 4
|
karnoo |
自带discuz的伪静态规则
回复
2014-10-09 10:07:55 5
|