Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] 由于前段时间搞了伪静态 现在想改为dz默认的 不知道怎么操作了?谁能帮我吗?

[复制链接]
 楼主| 宁海格子铺 发表于 2011-10-11 23:24:06 | 显示全部楼层
leyushequ 发表于 2011-10-11 23:19
看看结果如何。。。

是不是与官方的一样的?
回复

使用道具 举报

 楼主| 宁海格子铺 发表于 2011-10-11 23:31:10 | 显示全部楼层
166ku 发表于 2011-10-11 21:28
我有系统规则希望可以帮到你   下载文件   再看说明吧

官方的

https://discuz.dismall.com/forum-26-1.html

我的成http://www.nhxzj.com/forum.php?mod=forumdisplay&fid=167

应该怎么修改?

我好郁闷啊
回复

使用道具 举报

 楼主| 宁海格子铺 发表于 2011-10-11 23:31:41 | 显示全部楼层
leyushequ 发表于 2011-10-11 23:19
看看结果如何。。。

官方的

https://discuz.dismall.com/forum-26-1.html

我的成http://www.nhxzj.com/forum.php?mod=forumdisplay&fid=167

应该怎么修改?

我好郁闷啊
回复

使用道具 举报

movie007 发表于 2011-10-12 00:01:01 | 显示全部楼层
编辑空间根目录的.htaccess文件
  1. Apache Web Server(虚拟主机用户)
  2. # 将 RewriteEngine 模式打开
  3. RewriteEngine On

  4. # 修改以下语句中的 /discuz 为你的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /
  5. RewriteBase /discuz

  6. # Rewrite 系统规则请勿修改
  7. RewriteCond %{QUERY_STRING} ^(.*)$
  8. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
  9. RewriteCond %{QUERY_STRING} ^(.*)$
  10. RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
  11. RewriteCond %{QUERY_STRING} ^(.*)$
  12. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
  13. RewriteCond %{QUERY_STRING} ^(.*)$
  14. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
  15. RewriteCond %{QUERY_STRING} ^(.*)$
  16. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
  17. RewriteCond %{QUERY_STRING} ^(.*)$
  18. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
复制代码
回复

使用道具 举报

 楼主| 宁海格子铺 发表于 2011-10-12 00:02:16 | 显示全部楼层
movie007 发表于 2011-10-12 00:01
编辑空间根目录的.htaccess文件

后台需要怎么改?????????
回复

使用道具 举报

 楼主| 宁海格子铺 发表于 2011-10-12 00:04:10 | 显示全部楼层
movie007 发表于 2011-10-12 00:01
编辑空间根目录的.htaccess文件

用了你的出现这个

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@nhxzj.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2 Server at www.nhxzj.com Port 80
回复

使用道具 举报

 楼主| 宁海格子铺 发表于 2011-10-12 00:06:42 | 显示全部楼层
movie007 发表于 2011-10-12 00:01
编辑空间根目录的.htaccess文件

# 将 RewriteEngine 模式打开
RewriteEngine On
# 修改以下语句中的 /discuz 为你的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /
RewriteBase /discuz
# Rewrite 系统规则请勿修改
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

用这个就正常了
回复

使用道具 举报

 楼主| 宁海格子铺 发表于 2011-10-12 00:08:27 | 显示全部楼层
movie007 发表于 2011-10-12 00:01
编辑空间根目录的.htaccess文件



本帖子中包含更多资源

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

x
回复

使用道具 举报

 楼主| 宁海格子铺 发表于 2011-10-12 00:26:39 | 显示全部楼层
Discuz! 程序版本 Discuz! X2 Release 20111010 查看最新版本 专业支持与服务 Discuz!专用主机
UCenter 客户端版本 UCenter 1.6.0 Release 20110501
服务器系统及 PHP Linux / PHP v5.2.13
服务器软件 Apache/2
服务器 MySQL 版本 5.1.45-log
回复

使用道具 举报

 楼主| 宁海格子铺 发表于 2011-10-12 06:57:27 | 显示全部楼层
{:soso__14355765479545285621_4:}
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-28 07:51 , Processed in 0.103154 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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