我在web.config配置 
   <RewriterConfig>
    <Rules>
      <RewriterRule>
        <LookFor>ly_show(\d+)\.html</LookFor>
        <SendTo>ly_show.aspx?id=$1</SendTo>
      </RewriterRule>
    </Rules>
  </RewriterConfig>我访问地址 http://localhost:827/ly_show3.html 提示该页找不到和无法显示1.已经把URLRewriter.dll拷贝到Bin目录
2.已经在web.config 做了配置
3.在IIS 主目录配置-映射-添加 .html扩展名到aspnet_isapi.dll,去掉
"确定文件是否存在"的勾选大家说说我访问的地址对吗,还什么地方没配置好呢

解决方案 »

  1.   

    <?xml version="1.0"?>
    <configuration>
      <configSections>
      <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
      </configSections>
      <connectionStrings>
    <add name="data" connectionString="server=127.0.0.1;uid=sa;pwd=123456;database=webdatebase" providerName="System.Data.SqlClient"/>
    </connectionStrings>
    <system.web>
        <httpHandlers>
          <add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
          <add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
        </httpHandlers>
    <!-- 
                设置 compilation debug="true" 将调试符号插入
                已编译的页面中。但由于这会 
                影响性能,因此只在开发过程中将此值 
                设置为 true。
            -->
    <compilation debug="true"/>
    <!--
                通过 <authentication> 节可以配置 ASP.NET 使用的 
                安全身份验证模式,
                以标识传入的用户。 
            -->
    <authentication mode="Windows"/>
    <globalization requestEncoding="gb2312" responseEncoding="gb2312"/>
            <customErrors mode="RemoteOnly" defaultRedirect="error.htm">
                <error statusCode="403" redirect="error.htm" />
                <error statusCode="404" redirect="error.htm" />
            </customErrors>
    </system.web>
      <RewriterConfig>
        <Rules>
          <RewriterRule>
            <LookFor>ly_show(\d+)\.html</LookFor>
            <SendTo>ly_show.aspx?id=$1</SendTo>
          </RewriterRule>
        </Rules>
      </RewriterConfig></configuration>
      

  2.   

     <RewriterRule>
            <LookFor>~/ly_show(\d+)\.html</LookFor>
            <SendTo>~/ly_show.aspx?id=$1</SendTo>
      </RewriterRule>试下。