中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

使用URLrewrite進行URL偽靜態重寫

發布時間:2020-04-04 12:53:30 來源:網絡 閱讀:1033 作者:緣來沒法擋 欄目:編程語言


<?xml version="1.0" encoding="utf-8"?>


<!--
  有關如何配置 ASP.NET 應用程序的詳細信息,請訪問
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->


<configuration>


  <!--使用URLRewriter.dll -->
  <configSections>
    <section name="RewriterConfig" requirePermission="false" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
  </configSections>


  <appSettings>
    <add key="sqlConn" value="BjYLZtBk358Hbd023T4dVUzers8KD6g5TIG8hZSvYuWZMuFX3LbYEOMXoitRdRK1erqh7waKltA1rre4q5XgQLuQ==" />


  </appSettings>


  <RewriterConfig>
    <Rules>
      <RewriterRule>
        <LookFor>~/xueyuan/article/([0-9]*)</LookFor>
        <SendTo>~/xueyuan/article.aspx?id=$1</SendTo>
         </RewriterRule>
    <RewriterRule>
        <LookFor>~/xueyuan/C([0-9]*)</LookFor>
        <SendTo>~/xueyuan/articles.aspx?cid=$1</SendTo>
      </RewriterRule>
    <RewriterRule>
       
        <LookFor>~/xueyuan/P([0-9]*)</LookFor>
        <SendTo>~/xueyuan/articles.aspx?pid=$1</SendTo>
              </RewriterRule>
    </Rules>
  </RewriterConfig>


  <system.web>
    <httpHandlers>
    
      <!--使用URLRewriter.dll    -->
      <add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
      <add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />


    </httpHandlers>
     <httpModules>
      <add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter" />
    </httpModules>
    <!--<compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />-->
    <compilation debug="true" targetFramework="4.0" />
    <httpRuntime requestValidationMode="2.0" />
    <customErrors mode="Off" />
  </system.web>


  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
      <remove name="ScriptModule" />
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
           
            <add name="HTML" 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="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </handlers>
  </system.webServer>


</configuration>



向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

绵竹市| 同仁县| 海丰县| 饶阳县| 汤阴县| 海盐县| 长治县| 黔西| 霍邱县| 侯马市| 抚远县| 喜德县| 阿鲁科尔沁旗| 河南省| 高密市| 郸城县| 丰镇市| 志丹县| 安庆市| 聊城市| 沂源县| 多伦县| 土默特右旗| 崇仁县| 徐水县| 开原市| 忻州市| 柯坪县| 镇坪县| 新野县| 甘泉县| 靖宇县| 凤凰县| 嘉鱼县| 宜良县| 上犹县| 乾安县| 郁南县| 建德市| 双江| 会泽县|