59 lines
2.5 KiB
XML
59 lines
2.5 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
Note: As an alternative to hand editing this file you can use the
|
|
web admin tool to configure settings for your application. Use
|
|
the Website->Asp.Net Configuration option in Visual Studio.
|
|
A full list of settings and comments can be found in
|
|
machine.config.comments usually located in
|
|
\Windows\Microsoft.Net\Framework\v2.x\Config
|
|
-->
|
|
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
|
|
<configSections>
|
|
<section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/>
|
|
</configSections>
|
|
<appSettings/>
|
|
<connectionStrings/>
|
|
<system.web>
|
|
<!--
|
|
Set compilation debug="true" to insert debugging
|
|
symbols into the compiled page. Because this
|
|
affects performance, set this value to true only
|
|
during development.
|
|
-->
|
|
<compilation debug="true" defaultLanguage="c#" targetFramework="4.0"/>
|
|
<!--
|
|
The <authentication> section enables configuration
|
|
of the security authentication mode used by
|
|
ASP.NET to identify an incoming user.
|
|
-->
|
|
<authentication mode="Windows"/>
|
|
<!--
|
|
The <customErrors> section enables configuration
|
|
of what to do if/when an unhandled error occurs
|
|
during the execution of a request. Specifically,
|
|
it enables developers to configure html error pages
|
|
to be displayed in place of a error stack trace.
|
|
|
|
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
|
|
<error statusCode="403" redirect="NoAccess.htm" />
|
|
<error statusCode="404" redirect="FileNotFound.htm" />
|
|
</customErrors>
|
|
-->
|
|
<httpModules>
|
|
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>
|
|
</httpModules>
|
|
<!--urlMappings enabled="true">
|
|
<add url="~/redirect" mappedUrl="~/Redirect.aspx" />
|
|
</urlMappings-->
|
|
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web>
|
|
<system.webServer>
|
|
<modules runAllManagedModulesForAllRequests="true">
|
|
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule"/>
|
|
</modules>
|
|
</system.webServer>
|
|
<rewriter>
|
|
<rewrite url="~/redirect" to="~/Redirect.aspx"/>
|
|
<rewrite url="~/page/([0-9]+)$" to="~/Page.aspx?pageNumber=$1"/>
|
|
<rewrite url="~/page/([0-9]+)(\?)(.*)" to="~/Page.aspx?pageNumber=$1&$3"/>
|
|
</rewriter>
|
|
</configuration>
|