遇到的问题就是rewriter不起效果冲IIS6迁移过来的。最后发现是Framework 4.0的原因!记录处理方式为:

一、

<configSections>
    <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
</configSections>

二、

<httpModules>
         <add type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" name="UrlRewriter" />
</httpModules>

三、

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    <handlers>
         <add name="all" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
         <add name="htmls" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
    </handlers>
</system.webServer>

最重要是第三步 4.0 必须要。ok了!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-05-08
  • 2022-01-14
  • 2021-12-08
猜你喜欢
  • 2021-07-24
  • 2021-10-08
  • 2021-07-01
  • 2022-02-19
  • 2021-10-18
  • 2021-11-29
相关资源
相似解决方案