VPS侦探论坛

标题: 发一个测试过可用的Discuz X2的apache伪静态文件 [打印本页]

作者: oldghost    时间: 2011-11-10 11:13
标题: 发一个测试过可用的Discuz X2的apache伪静态文件
昨天装了军哥的lnmpa,折腾了好久,终于把Discuz X2架好了,过程可谓有点曲折啊。
原来和lnmp还是有不少区别滴,现在把我调试好确定可用的apache的伪静态文件发出来,有需要的拿去。

[attach]614[/attach]
作者: oldghost    时间: 2011-11-10 11:14
把代码贴出来好了。。。。
  1. RewriteEngine On

  2. RewriteBase /

  3. RewriteCond %{QUERY_STRING} ^(.*)$
  4. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
  5. RewriteCond %{QUERY_STRING} ^(.*)$
  6. RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
  7. RewriteCond %{QUERY_STRING} ^(.*)$
  8. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
  9. RewriteCond %{QUERY_STRING} ^(.*)$
  10. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
  11. RewriteCond %{QUERY_STRING} ^(.*)$
  12. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
  13. RewriteCond %{QUERY_STRING} ^(.*)$
  14. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
  15. RewriteCond %{QUERY_STRING} ^(.*)$
  16. RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
  17. RewriteCond %{QUERY_STRING} ^(.*)$
  18. RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
  19. RewriteCond %{QUERY_STRING} ^(.*)$
  20. RewriteRule ^([a-z]+)-(.+)\.html$ $1.php?rewrite=$2&%1
复制代码

作者: carlgreat    时间: 2011-12-20 17:57
另外,除了这个文件外,另外还需要做什么设置呢?
作者: windme    时间: 2011-12-20 19:37
后台就有伪静态的配置文件啊
作者: thinkfor    时间: 2011-12-25 11:37
.htaccess文件 放到DX根目录。

配置文集需修改那里啊?

lnmpa 环境

[ 本帖最后由 thinkfor 于 2011-12-25 11:39 编辑 ]
作者: myamo    时间: 2012-2-8 19:06
谢谢,测试可用。lnmpa环境
作者: acalbert    时间: 2012-2-9 00:55
标题: 回复 2# 的帖子
标记~~~~~




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4