Discuz!NT官方社区

首页 » Discuz!NT开发与测试 » Discuz!NT整合 » 高手帮我改一下这个WEB文件好嘛??????
py109 - 2007-9-17 13:59:00
我用的是网奇4.5+DNT2.0 RC2        用这个WEB论坛不能发图片..........其他的好像都可以吧.........

<?xml version="1.0" encoding="gb2312"?>
<configuration>
        <configSections>
                <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
        </configSections>
       
       
        <RewriterConfig>
        <Rules>
                <RewriterRule>
                        <LookFor>~/c(\d{1,8})\.aspx</LookFor>
                        <SendTo>~/list.aspx?cid=$1</SendTo>
                </RewriterRule>
                <RewriterRule>
                        <LookFor>~/c(\d{1,8})p(\d{1,6})\.aspx</LookFor>
                        <SendTo>~/list.aspx?cid=$1&amp;page=$2</SendTo>
                </RewriterRule>
                <RewriterRule>
                        <LookFor>~/n(\d{1,8})c(\d{1,8})\.aspx</LookFor>
                        <SendTo>~/show.aspx?id=$1&amp;cid=$2</SendTo>
                </RewriterRule>
                <RewriterRule>
                        <LookFor>~/n(\d{1,8})c(\d{1,8})p(\d{1,8})\.aspx</LookFor>
                        <SendTo>~/show.aspx?id=$1&amp;cid=$2&amp;page=$3</SendTo>
                </RewriterRule>
        </Rules>
        </RewriterConfig>

        <appSettings>
                <add key="Charset" value="gb2312" />
                <add key="NewsUrl" value="http://localhost/" />
                <add key="GroupId" value="1" />
                <add key="IwmsCode" value="3ce2064081f51e1f7612abfc296f592c" />
        </appSettings>
       
        <system.web>

                <compilation defaultLanguage="C#" debug="true"/>
               
                <!--如果为.net SDK 1.0及以前版本,请删除validateRequest="false" -->
                <pages validateRequest="false" enableSessionState="true" enableViewState="true"/>

                <customErrors mode="Off" />

                <globalization fileEncoding="gb2312" requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" />
               
                <httpRuntime maxRequestLength="2048" />
               
                <httpModules>
                        <add type="Discuz.Forum.HttpModule, Discuz.Forum" name="HttpModule" />
                        <add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter" />
    </httpModules>
               
                <httpHandlers>
                        <add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
                        <add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
                </httpHandlers>

        </system.web>

          <location path="bbs" allowOverride="false">
                <system.web>
                                        <globalization
                                requestEncoding="utf-8"
                                responseEncoding="utf-8"
                                fileEncoding="utf-8"
                />
                <httpModules>
                        <add type="Discuz.Forum.HttpModule, Discuz.Forum" name="HttpModule" />
                        <remove name="ModuleRewriter" />
                </httpModules>
                </system.web>
        </location>
</configuration>


py109 - 2007-9-17 14:03:00
求那位高手帮我改一下这个文件.......现在用这个文件的主要问题就是论坛不能发图片......一发图片网址就变这样:http://www.coo88.com/bbs/postreply.aspx?topicid=23  显示空白......

如果再从首页进刚才发的这个图片 这个图片不会显示的...只有这样的代码:[localimg=400,294]1[/localimg]  不知道甚么意思////
1
查看完整版本: 高手帮我改一下这个WEB文件好嘛??????