web.config
author Dan Fuhry <dan@enanocms.org>
Wed, 25 Apr 2012 02:01:55 -0400
changeset 1360 570abc94bd7f
parent 930 648043f3911d
permissions -rw-r--r--
Image scaling: Fixed a bug where (height > width) images would be scaled to the wrong dimensions (GD). Added PNG/GIF transparency support to GD image resizer. Added a cache bypass option to SpecialUpDownload.

<!-- Enano CMS - IIS7 Rewrite support -->

<configuration>
  <configSections>
    <sectionGroup name="rewriteRules">
      <section name="rules" overrideModeDefault="Allow" />
    </sectionGroup>
  </configSections>
  <system.webServer>
    <rewrite>
      <rules>
        <!-- Main rule - short and sweet-->
        <rule name="Enano rewritten URLs" stopProcessing="true">
          <match url="(.*)" ignoreCase="false" />
          <conditions>
            <!-- Don't rewrite if the user requested a real directory or file-->
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
          </conditions>
          <action type="Rewrite" url="index.php?title={R:1}" appendQueryString="true" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>