﻿<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="codeHighlighter" type="ActiproSoftware.CodeHighlighter.CodeHighlighterConfigurationSectionHandler, ActiproSoftware.CodeHighlighter.Net20"/>
    <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
  </configSections>
  <RewriterConfig>
    <Rules>
      <!-- Rules for Blog Content Displayer -->
      <RewriterRule>
        <LookFor>~/trade.html</LookFor>
        <SendTo>~/trade.aspx?classid=0</SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/etwtradeclass(\d+).html</LookFor>
        <SendTo>~/trade.aspx?classid=$1</SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/trade(\d+).html</LookFor>
        <SendTo>~/trade.aspx?page=$1</SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/trade(\d+)-(\d+).html</LookFor>
        <SendTo><![CDATA[~/trade.aspx?classid=$1&page=$2]]></SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/tradedetails(\d+)\.html</LookFor>
        <SendTo>~/tradedetails.aspx?lid=$1</SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/tradedetails(\d+)-(\d+).html</LookFor>
        <SendTo><![CDATA[~/tradedetails.aspx?classid=$1&lid=$2]]></SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/news.html</LookFor>
        <SendTo>~/news.aspx?classid=0</SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/etwnewsclass(\d+).html</LookFor>
        <SendTo>~/news.aspx?classid=$1</SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/etwnewspage(\d+).html</LookFor>
        <SendTo>~/news.aspx?page=$1</SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/etwnewspage(\d+)-(\d+).html</LookFor>
        <SendTo><![CDATA[~/news.aspx?classid=$1&page=$2]]></SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/etwnews(\d+)-(\d+).html</LookFor>
        <SendTo><![CDATA[~/newsdetails.aspx?classid=$1&lid=$2]]></SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/etwnews(\d+).html</LookFor>
        <SendTo>~/newsdetails.aspx?lid=$1</SendTo>
      </RewriterRule>
      <RewriterRule>
        <LookFor>~/([^/]*?)\.html</LookFor>
        <SendTo>~/$1.aspx</SendTo>
      </RewriterRule>
    </Rules>
  </RewriterConfig>
  <appSettings>
    <add key="systemfolder" value="system_dntb/"/>
  </appSettings>
  <connectionStrings>
  </connectionStrings>
  <system.web>
    <pages enableEventValidation="false" viewStateEncryptionMode ="Never">
      <controls>
        <add tagPrefix="anthem" namespace="Anthem" assembly="Anthem"/>
      </controls>
    </pages>
    <customErrors mode="Off"/>
    <authorization>
      <allow users="*"/>
    </authorization>
    <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true"/>
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8"/>
    <xhtmlConformance mode="Legacy"/>
    <compilation debug="true">
      <assemblies>
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      </assemblies>
      <buildProviders>
        <add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
      </buildProviders>
    </compilation>
    <httpHandlers>
      <add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
      <add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
    </httpHandlers>
  </system.web>
</configuration>
