Discuz的伪静态可以规范url,估计玩Discuz的童鞋们都想设置伪静态,Blinux也不例外,下面提供Discuz 7.2 伪静态设置方法,用.htaccess就可以搞定.

将下面字符复制并保存为.htaccess,并传输至论坛根目录即可.


RewriteEngine On
RewriteBase /
RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1

原创文章,转载请注明: 转载自Blinux

原文链接地址: Discuz 7.2 伪静态规则

6 Responses to “Discuz 7.2 伪静态规则”

  1. CheonNii AUSTRALIA Mozilla Firefox Windows 说:

    正需要这个呢,竟然在老弟的博客找到。
    哈哈!
    谢谢啦。

    [回复]

    Blinux AUSTRALIA Google Chrome Windows 回复:

    老哥来了,不慎荣幸啊

    [回复]

  2. CheonNii AUSTRALIA Mozilla Firefox Windows 说:

    Discuz 无法发信问题知道怎么解决吗?

    [回复]

    Blinux AUSTRALIA Google Chrome Windows 回复:

    discuz默认有sendmail和smtp两种方式发信
    如果你是Linux主机,那么用默认的sendmail发信就OK.
    如果你是Windows主机你可以采用smtp的方式发信.

    [回复]

    CheonNii CHINA Mozilla Firefox Windows 回复:

    默认的sendmail发布出去。
    头疼中。。。。。。

    [回复]

    CheonNii CHINA Mozilla Firefox Windows 回复:

    发送成功了,郁闷。
    一直在发件人里写了邮件内容。
    太马虎了。

    [回复]

Leave a Reply

:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!: