zoukankan      html  css  js  c++  java
  • IIS7中的ASP.NET的URL重写配置代码 狼人:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <configSections>
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
    <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
    </configSections>
    <appSettings/>
    <connectionStrings/>
    <system.web>
    <httpModules>
    <add type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter" name="UrlRewriter" />
    </httpModules>
    <customErrors mode="Off" defaultRedirect="Error.aspx" />
    <pages enableEventValidation="true" validateRequest="false" />
    <siteMap defaultProvider="default" enabled="true">
    <providers>
    <add name="default" type="System.Web.XmlSiteMapProvider" siteMapFile="Web.sitemap" securityTrimmingEnabled="true" />
    </providers>
    </siteMap>
    <compilation debug="true" />
    </system.web>
    <rewriter>
    <rewrite url="^/$" to="Default.aspx" />
    <rewrite url="~/Search(/?)(.+)$" to="~/Search.aspx$1"/>
    </rewriter>
    <system.webServer>
    <handlers>
    <remove name="StaticFile" />
    <add name="All" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
    <add name="StaticFile" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" resourceType="File" requireAccess="Read" />
    </handlers>
    </system.webServer>
    </configuration>
  • 相关阅读:
    SQLServer限制IP,限制用户,限制SSMS登录
    关于Natively Compiled Stored Procedures的优化
    .NET/C#- EPPLUS DEMO
    ASP.NET MVC- 视图
    ASP.NET MVC- 在Area里使用RedirectToAction跳转出错的解决方法
    ASP.NET MVC- 解决HTML转码
    ASP.NET MVC- KindEditor的使用
    ASP.NET MVC- Upload File的例子
    ASP.NET MVC- ActionFilter的使用
    ASP.NET MVC- UrlHelper的用法
  • 原文地址:https://www.cnblogs.com/waw/p/1877702.html
Copyright © 2011-2022 走看看