<?
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 >
< 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 >