如题,我想别人访问 index.html的时候能访问到index.aspx。改怎么写?最好给点注释,写好之后要怎么配置?

解决方案 »

  1.   

    我在网上查了,
    <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler,URLRewriter" />
    <RewriterConfig >
        <Rules>
          <!-- Rules for Blog Content Displayer -->
          <RewriterRule>
            <LookFor>~/index.html</LookFor>
            <SendTo>
              ~/index.aspx</SendTo>
          </RewriterRule>
        </Rules>
      </RewriterConfig><httpHandlers>
    <add verb="*" path="*.html" type = "URLRewriter.RewriterFactoryHandler, URLRewriter"/>
    </httpHandlers>然后打html后缀 直接404
      

  2.   

    你的页面原本是aspx的??
    那你写伪静态将其转为html的
    有为何要访问aspx呢??