zoukankan      html  css  js  c++  java
  • .net 加伪静态的方法

    1、下载微软的dll程序集

    2、配置web.config

    <configSections>
      <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
     </configSections>

    <RewriterConfig>
      <Rules>
    <RewriterRule>
        <LookFor>~/en/viewproduct-(/d{1,6})/.html</LookFor>
        <SendTo>~/en/viewproduct.aspx?id=$1</SendTo>
       </RewriterRule>
      </Rules>
     </RewriterConfig>

    在syste.web节里面加

     <httpModules>
       <add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter"/>
      </httpModules>

    必要的时候加下面,这样就能配置成html的了

    <system.webServer>
        <handlers>
          <add name="html map" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="C:/Windows/Microsoft.NET/Framework/v4.0.30319/aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
        </handlers>
      </system.webServer>

    这样就大功告成了

  • 相关阅读:
    9.17考试
    Something
    tesuto-Mobius
    7.22考试
    填坑...P1546 最短网络 Agri-Net
    P1125 笨小猴
    P2822 组合数问题
    致我们曾经刷过的水题
    Luogu P1186 玛丽卡
    Luogu P1726 上白泽慧音
  • 原文地址:https://www.cnblogs.com/tongdengquan/p/6090578.html
Copyright © 2011-2022 走看看