- 论坛徽章:
- 0
|
本帖最后由 061107 于 2010-11-19 14:33 编辑
在万网G5上安装discuz 7.2 ,DZ7.2 装在/bbs目录下:
/web.config老出错。大家帮忙看看吧。
这是.htaccess,的写法:- RewriteEngine On
- RewriteBase /
- RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1
- RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
- RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
- RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
- RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
复制代码 这是我的:
- <?xml version="1.0" encoding="UTF-8"?>
- <configuration>
- <system.webServer>
- <rewrite>
- <rules>
- <rule name="rule1" stopProcessing="true">
- <match url="^/bbs/archiver/((fid|tid)-[\w\-]+\.html)$" />
- <action type="Rewrite" url="/bbs/archiver/index.php?{R:1}" />
- </rule>
- <rule name="rule2" stopProcessing="true">
- <match url="^/bbs/forum-([0-9]+)-([0-9]+)\.html$" />
- <action type="Rewrite" url="/bbs/forumdisplay.php?fid={R:1}&page={R:2}" />
- </rule>
- <rule name="rule3" stopProcessing="true">
- <match url="^/bbs/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" />
- <action type="Rewrite" url="/bbs/viewthread.php?tid={R:1}&extra=page\%3D{R:3}&page={R:2}" />
- </rule>
- <rule name="rule4" stopProcessing="true">
- <match url="^/bbs/space-(username|uid)-(.+)\.html$" />
- <action type="Rewrite" url="/bbs/space.php?{R:1}={R:2}" />
- </rule>
- <rule name="rule5" stopProcessing="true">
- <match url="^/bbs/tag-(.+)\.html$" />
- <action type="Rewrite" url="/bbs/tag.php?name={R:1}" />
- </rule>
- </rules>
- </rewrite>
- <httpErrors errorMode="Detailed" />
- <asp scriptErrorSentToBrowser="true" />
- </system.webServer>
- <system.web>
- <customErrors mode="Off" />
- <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
- </system.web>
- </configuration>
复制代码 服务器错误 Internet 信息服务 7.0
错误摘要HTTP 错误 500.19 - Internal Server Error
无法访问请求的页面,因为该页的相关配置数据无效。
详细错误信息
模块 IIS Web Core
通知 未知
处理程序 尚未确定
错误代码 0x8007000d
配置错误 配置文件的 XML 格式不正确
配置文件 \\?\f:\usr\LocalUser\ttt88888\web.config
请求的 URL http://www.××××.cn:80/bbs
物理路径
登录方法 尚未确定
登录用户 尚未确定
配置源
11: <match url="^/bbs/forum-([0-9]+)-([0-9]+)\.html$ />
12: <action type="Rewrite" url="/bbs/forumdisplay.php?fid={R:1}&page={R:2}" appendQueryString="false" />
13: </rule> |
|