一、Web.config配置解决办法

    直接在Web.config下 加入:

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

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

   3.<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    <handlers>
            <add name="woool1" 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="woool" 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>

说明:如果是IIS7 和 Framework 2.0时,不需要红色字体部分,把v4.0.30319改成对应的2.0的版本号。

        如果是IIS7 和 Framework 4.0时,红色字体部分是必须的。

二、 手动在IIS7下添加 步骤如下:

  1.打开IIS7窗口下的  处理程序映射

Framework4.0 IIS7下urlrewriter设置问题

2.在处理程序映射下添加 *.html和*的映射

Framework4.0 IIS7下urlrewriter设置问题

Framework4.0 IIS7下urlrewriter设置问题

相关文章:

  • 2022-01-08
  • 2022-12-23
  • 2021-07-09
  • 2021-08-10
  • 2021-08-04
  • 2021-05-19
  • 2022-02-09
猜你喜欢
  • 2021-11-11
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
相关资源
相似解决方案