web.config
author Dan Fuhry <dan@enanocms.org>
Thu, 28 Oct 2010 03:05:31 -0400
changeset 1308 f9bee9b125ee
parent 930 648043f3911d
permissions -rw-r--r--
Parser updates. Added the "styled" keyword to wikitables to allow them to be styled using the current theme's standard table skinning, and changes to how the image tag parser decides how to display an image (framed, inline or raw).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
930
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
     1
<!-- Enano CMS - IIS7 Rewrite support -->
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
     2
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
     3
<configuration>
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
     4
  <configSections>
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
     5
    <sectionGroup name="rewriteRules">
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
     6
      <section name="rules" overrideModeDefault="Allow" />
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
     7
    </sectionGroup>
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
     8
  </configSections>
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
     9
  <system.webServer>
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    10
    <rewrite>
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    11
      <rules>
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    12
        <!-- Main rule - short and sweet-->
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    13
        <rule name="Enano rewritten URLs" stopProcessing="true">
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    14
          <match url="(.*)" ignoreCase="false" />
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    15
          <conditions>
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    16
            <!-- Don't rewrite if the user requested a real directory or file-->
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    17
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    18
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    19
          </conditions>
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    20
          <action type="Rewrite" url="index.php?title={R:1}" appendQueryString="true" />
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    21
        </rule>
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    22
      </rules>
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    23
    </rewrite>
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    24
  </system.webServer>
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    25
</configuration>
648043f3911d Added web.config support for IIS7 URL rewriting.
Dan
parents:
diff changeset
    26