AMH 社区首页
AMH社区 - 开放自由有价值的社区
[综合话题] 求3.2dz伪静态规则,用的事4.2面板,里面的不适用。 |
|
---|---|
女皇设计师 |
女皇设计师 发表于 2014-10-04 14:08:08
本帖最后由 女皇设计师 于 2014-10-4 17:29 编辑
求3.2dz伪静态规则,用的事4.2面板,里面的不适用。网站:http://www.app170.com/forum.php,求大神。百度无果,来求助。
点赞,加油! (0分)
2014-10-04 14:08:08 1
|
liudiary |
本帖最后由 liudiary 于 2014-10-4 14:47 编辑
AMH5有LAMP环境 可以选择htaccess(discuz提供) nginx [*]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; [*]}
回复
2014-10-04 14:45:57 2
|
liudiary |
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; }
回复
2014-10-04 14:47:02 3
|
liudiary |
还有你伪静态不是已经生效了么
回复
2014-10-04 14:47:30 4
|
女皇设计师 |
回复
2014-10-04 17:28:58 5
|
liudiary |
回复
2014-10-04 17:30:52 6
|
女皇设计师 |
回复
2014-10-04 17:32:14 7
|
liudiary |
回复
2014-10-04 17:33:33 8
|
女皇设计师 |
回复
2014-10-04 17:35:05 9
|
liudiary |
回复
2014-10-04 17:47:07 10
|