国产精品毛片一区二区,欧美熟妇brazzers,丰满女邻居的嫩苞张开视频,天天爽夜夜爽夜夜爽

南京北大青鳥(niǎo)

全國(guó)咨詢電話:15195455103

三分鐘了解北大青鳥(niǎo)
當(dāng)前位置:南京北大青鳥(niǎo) > 學(xué)習(xí)園地 > 編程技巧

偽靜態(tài)步驟web.config

來(lái)源:未知? ? ? 作者:IT教育 ? ??

第一步注冊(cè)u(píng)rl重寫(xiě)模塊放到webconfig的上部
?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <!--第一步注冊(cè)u(píng)rl重寫(xiě)模塊放到webconfig的上部-->
  <configSections>
    <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
  </configSections>
  <!--第二步添加重寫(xiě)規(guī)則-->
  <RewriterConfig>
    <!--先制定全部重寫(xiě)規(guī)則內(nèi)容-->
    <Rules>
      <!--制定每個(gè)單獨(dú)頁(yè)面的規(guī)則-->
      <RewriterRule>
        <!--原始請(qǐng)求地址-->
        <SendTo><![CDATA[~/news.aspx?id=$1&pid=$2]]></SendTo>
        <!--重寫(xiě)后的地址-->
        <LookFor>~/news/(.[0-9]*)/(.[\d]*)\.html</LookFor>
      </RewriterRule>
      <RewriterRule>
        <!--原始請(qǐng)求地址-->
        <SendTo><![CDATA[~/product.aspx?pid=$1]]></SendTo>
        <!--重寫(xiě)后的地址-->
        <LookFor>~/product/(.[\d]*)\.zangdalei</LookFor>
      </RewriterRule>
    </Rules>
  </RewriterConfig>
    <system.web>
      <compilation debug="false" targetFramework="4.0">
        <!--第四部url重寫(xiě)防止真實(shí)的頁(yè)面也被重寫(xiě)如果網(wǎng)站中真實(shí)存在頁(yè)面,需要添加編譯指令不編譯真實(shí)的html文件-->
        <buildProviders>
          <add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
        </buildProviders>
      </compilation>
      <!--第三部url重寫(xiě) 將用戶的請(qǐng)求頁(yè)面交給相應(yīng)的處理程序,注意請(qǐng)求的后綴名格式-->
      <httpHandlers>
        <add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
        <add verb="*" path="*.zangdalei" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
      </httpHandlers>
    </system.web>
    <system.webServer>
        <handlers>
            <add name="aspnethtml" path="*.html" verb="GET,POST" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
          <add name="aspnetzangdalei" path="*.zangdalei" verb="GET,POST" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
        </handlers>
        <defaultDocument>
            <files>
                <clear />
                <add value="default.aspx" />
                <add value="default.html" />
            </files>
        </defaultDocument>
    </system.webServer>
</configuration>

分享到:

相關(guān)閱讀:

近期文章

搶試聽(tīng)名額

名額僅剩66名

教育改變生活

WE CHANGE LIVES