| OLD | NEW |
| (Empty) |
| 1 <?xml version="1.0"?> | |
| 2 <!-- | |
| 3 Note: As an alternative to hand editing this file you can use the | |
| 4 web admin tool to configure settings for your application. Use | |
| 5 the Website->Asp.Net Configuration option in Visual Studio. | |
| 6 A full list of settings and comments can be found in | |
| 7 machine.config.comments usually located in | |
| 8 \Windows\Microsoft.Net\Framework\v2.x\Config | |
| 9 --> | |
| 10 <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> | |
| 11 <configSections> | |
| 12 <section name="rewriter" requirePermission="false" type="Intelli
gencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligen
cia.UrlRewriter"/> | |
| 13 </configSections> | |
| 14 <appSettings/> | |
| 15 <connectionStrings/> | |
| 16 <system.web> | |
| 17 <!-- | |
| 18 Set compilation debug="true" to insert debugging | |
| 19 symbols into the compiled page. Because this | |
| 20 affects performance, set this value to true only | |
| 21 during development. | |
| 22 --> | |
| 23 <compilation debug="true" defaultLanguage="c#" targetFramework="
4.0"/> | |
| 24 <!-- | |
| 25 The <authentication> section enables configuration | |
| 26 of the security authentication mode used by | |
| 27 ASP.NET to identify an incoming user. | |
| 28 --> | |
| 29 <authentication mode="Windows"/> | |
| 30 <!-- | |
| 31 The <customErrors> section enables configuration | |
| 32 of what to do if/when an unhandled error occurs | |
| 33 during the execution of a request. Specifically, | |
| 34 it enables developers to configure html error pages | |
| 35 to be displayed in place of a error stack trace. | |
| 36 | |
| 37 <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> | |
| 38 <error statusCode="403" redirect="NoAccess.htm" /> | |
| 39 <error statusCode="404" redirect="FileNotFound.htm" /> | |
| 40 </customErrors> | |
| 41 --> | |
| 42 <httpModules> | |
| 43 <add name="UrlRewriter" type="Intelligencia.UrlRewriter.
RewriterHttpModule, Intelligencia.UrlRewriter"/> | |
| 44 </httpModules> | |
| 45 <!--urlMappings enabled="true"> | |
| 46 <add url="~/redirect" mappedUrl="~/Redirect.aspx" /> | |
| 47 </urlMappings--> | |
| 48 <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="
AutoID"/></system.web> | |
| 49 <system.webServer> | |
| 50 <modules runAllManagedModulesForAllRequests="true"> | |
| 51 <add name="UrlRewriter" type="Intelligencia.UrlRewriter.
RewriterHttpModule"/> | |
| 52 </modules> | |
| 53 </system.webServer> | |
| 54 <rewriter> | |
| 55 <rewrite url="~/redirect" to="~/Redirect.aspx"/> | |
| 56 <rewrite url="~/page/([0-9]+)$" to="~/Page.aspx?pageNumber=$1"/> | |
| 57 <rewrite url="~/page/([0-9]+)(\?)(.*)" to="~/Page.aspx?pageNumbe
r=$1&$3"/> | |
| 58 </rewriter> | |
| 59 </configuration> | |
| OLD | NEW |