Discuz!x2.5完整伪静态.htaccess代码,支持博客伪静态

网上常见的Discuz!x2.5伪静态文件可以实现全站伪静态,但个人博客文章不能伪静态,今天把我在用的伪静态.htaccess文件代码分享一下,希望对玩Discuz的朋友有用。

RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1

思章老师

认准了方向,就要勇敢地走下去,十年磨一剑,我相信,只要坚持,一切都有可能。

相关日志

  1. 没有图片

    2013.05.03

    WordPress安全卫士:Wordfence Security

    近来我发现个问题,上传到空间里的主题经常被自…

  2. 2013.04.10

    WordPress 3.6 Beta1 发布

    对没错!WordPress 3.6 Beta…

  3. 没有图片

    2011.03.12

    Winy大师作品 WordPress主题:W1

    昨天菠萝去逛了Winy大师的博客,他的博客设…

  4. 2011.10.21

    WordPress主题:SimplePro-TT 免费发布

    前段时间把我的自用 主题SimplePro …

  5. 没有图片

    2009.08.26

    UCenter Home 2.0 正式版 道具使用说明

    UCenter Home 2.0 正式版 发…

  6. 没有图片

    2010.04.30

    WP-MulticolLinks 让你的友情链接分栏显示

    菠萝今天找点空弄一下WordPress主题,…

评论

  1. 平板电脑推荐 2012.06.24 2:13下午

    直接看后台提供的代码就行了。

    • 落花生 2012.06.24 9:48下午

      后台的代码不支持博客的!