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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 伪静态。win2003的服务器。就是设置不成功

[复制链接]
阿星神 发表于 2012-12-5 17:52:46 | 显示全部楼层 |阅读模式
本帖最后由 阿星神 于 2012-12-5 18:25 编辑

这是ISAPI_Rewrite 错误报告
  1. [2012-12-5 16:24:16] ISAPI Filter loaded. Version 3.1.0.73. Windows 5.2 (Build 3790 ServicePack:2) ProductType SERVER. CPU type INTEL  NumberOfProcessors 2.
  2. [2012-12-5 16:28:37] ISAPI Filter loaded. Version 3.1.0.73. Windows 5.2 (Build 3790 ServicePack:2) ProductType SERVER. CPU type INTEL  NumberOfProcessors 2.
  3. [2012-12-5 16:34:09] ISAPI Filter loaded. Version 3.1.0.73. Windows 5.2 (Build 3790 ServicePack:2) ProductType SERVER. CPU type INTEL  NumberOfProcessors 2.
  4. [2012-12-5 17:07:43] ISAPI Filter loaded. Version 3.1.0.73. Windows 5.2 (Build 3790 ServicePack:2) ProductType SERVER. CPU type INTEL  NumberOfProcessors 2.
  5. [2012-12-5 17:15:59] ISAPI Filter loaded. Version 3.1.0.73. Windows 5.2 (Build 3790 ServicePack:2) ProductType SERVER. CPU type INTEL  NumberOfProcessors 2.
复制代码
网站目录下有这两个文件。然后设置伪静态就是首页能打开、点击帖子全部是404
httpd.ini
  1. [ISAPI_Rewrite]

  2. # 3600 = 1 hour

  3. CacheClockRate 3600

  4. RepeatLimit 32

  5. # Protect httpd.ini and httpd.parse.errors files

  6. # from accessing through HTTP

  7. RewriteRule ^(.*)/topic-(.+)\.html(\?(.*))*$ $1/portal\.php\?mod=topic&topic=$2&$4

  8. RewriteRule ^(.*)/article-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/portal\.php\?mod=view&aid=$2&page=$3&$5

  9. RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=forumdisplay&fid=$2&page=$3&$5

  10. RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$6

  11. RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=group&fid=$2&page=$3&$5

  12. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$ $1/home\.php\?mod=space&$2=$3&$5

  13. RewriteRule ^(.*)/blog-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/home\.php\?mod=space&uid=$2&do=blog&id=$3&$5

  14. RewriteRule ^(.*)/(fid|tid)-([0-9]+)\.html(\?(.*))*$ $1/index\.php\?action=$2&value=$3&$5
复制代码
.htaccess
  1. # Helicon ISAPI_Rewrite configuration file
  2. # Version 3.1.0.73

  3. RewriteEngine On
  4. RewriteCompatibility2 On
  5. RepeatLimit 32
  6. RewriteBase
  7. # # Line 0: (Unknown expression)
  8. RewriteRule ^(.*)/topic-(.+)\.html(\?(.*))*$ $1/portal\.php\?mod=topic&topic=$2&$4

  9. RewriteRule ^(.*)/article-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/portal\.php\?mod=view&aid=$2&page=$3&$5

  10. RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=forumdisplay&fid=$2&page=$3&$5

  11. RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$6

  12. RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=group&fid=$2&page=$3&$5

  13. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$ $1/home\.php\?mod=space&$2=$3&$5

  14. RewriteRule ^(.*)/blog-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/home\.php\?mod=space&uid=$2&do=blog&id=$3&$5

  15. RewriteRule ^(.*)/(fid|tid)-([0-9]+)\.html(\?(.*))*$ $1/index\.php\?action=$2&value=$3&$5
  16.       
复制代码

本帖子中包含更多资源

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

x
a475305268 发表于 2012-12-5 19:13:46 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

菰漃の啈冨 发表于 2012-12-5 19:26:20 | 显示全部楼层
用得着设置这么复杂? 默认安装ISAPI_Rewrite_Full组件就自动设置了 还需要手动、?
回复

使用道具 举报

lanhebbs 发表于 2012-12-5 20:03:28 | 显示全部楼层
{:soso_e141:}你就不能复制一下DZ自动产生的规则么?非要去其他网站复制粘贴
回复

使用道具 举报

 楼主| 阿星神 发表于 2012-12-5 21:12:45 | 显示全部楼层
回复

使用道具 举报

caiwenjie007 发表于 2012-12-5 23:50:21 | 显示全部楼层
如果实在搞不定,你找我吧。。这个很简单的
回复

使用道具 举报

 楼主| 阿星神 发表于 2012-12-8 13:26:07 | 显示全部楼层
caiwenjie007 发表于 2012-12-5 23:50
如果实在搞不定,你找我吧。。这个很简单的

已经解决了呢。谢谢哦

现在我在想怎么优化。把速度提上去。
回复

使用道具 举报

全民单调 发表于 2012-12-8 13:31:24 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

bxstar 发表于 2014-12-5 11:28:32 | 显示全部楼层
用另外一个isapi组件来解决吧,
下载地址,http://www.helicontech.com/isapi_rewrite/,使用免费版就可以了。

httpd.conf的配置如下:
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.104
               
        RewriteBase /
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php/$1 [L]        

配置好后,记得重启IIS
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 05:40 , Processed in 0.129034 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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