licess 发表于 2010-9-23 20:12:28

Discuz X1.5 Nginx Rewrite 伪静态规则

rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
rewrite ^([^\.]*)/article-(+)-(+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
rewrite ^([^\.]*)/forum-(\w+)-(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/thread-(+)-(+)-(+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
rewrite ^([^\.]*)/group-(+)-(+)\.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 ^([^\.]*)/(+)-(.+)\.html$ $1/$2.php?rewrite=$3 last;
if (!-e $request_filename) {
      return 404;
}

bujinshuo 发表于 2010-9-23 20:58:57

PW8和以前的一样不

wangncet 发表于 2010-10-22 00:21:10

回复 2# 的帖子

是一样的呀。:)

智立更生 发表于 2010-12-13 14:44:57

Discuz X1.5怎么无法开启伪静态呢?

kiah 发表于 2011-5-19 14:46:19

嘿嘿 学习了   不错哦

cindydean89 发表于 2011-8-15 16:59:12

学习下,不错:handshake http://amovos.info/yanqin2.jpg
页: [1]
查看完整版本: Discuz X1.5 Nginx Rewrite 伪静态规则