VPS侦探论坛

 找回密码
 注册
查看: 6804|回复: 6

发一个测试过可用的Discuz X2的apache伪静态文件

[复制链接]
发表于 2011-11-10 11:13:07 | 显示全部楼层 |阅读模式

昨天装了军哥的lnmpa,折腾了好久,终于把Discuz X2架好了,过程可谓有点曲折啊。
原来和lnmp还是有不少区别滴,现在把我调试好确定可用的apache的伪静态文件发出来,有需要的拿去。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-11-10 11:14:04 | 显示全部楼层


把代码贴出来好了。。。。
  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
复制代码
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-12-20 17:57:11 | 显示全部楼层

另外,除了这个文件外,另外还需要做什么设置呢?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-12-20 19:37:35 | 显示全部楼层



后台就有伪静态的配置文件啊
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-12-25 11:37:47 | 显示全部楼层

.htaccess文件 放到DX根目录。

配置文集需修改那里啊?

lnmpa 环境

[ 本帖最后由 thinkfor 于 2011-12-25 11:39 编辑 ]

军哥运维代购:http://shop63846532.taobao.com/

发表于 2012-2-8 19:06:44 | 显示全部楼层

谢谢,测试可用。lnmpa环境
发表于 2012-2-9 00:55:39 | 显示全部楼层

回复 2# 的帖子


标记~~~~~
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 07:28 , Processed in 0.027643 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表