1<configuration>
2<system.webServer>
3 <defaultDocument>
4 <files>
5 <clear />
6 <add value="index.php" />
7 <add value="default.aspx" />
8 <add value="Default.htm" />
9 <add value="Default.asp" />
10 <add value="index.htm" />
11 <add value="index.html" />
12 </files>
13 </defaultDocument>
14 <rewrite>
15 <rules>
16 <rule name="Imported Rule 1" stopProcessing="true">
17 <match url="^(.*)/$" ignoreCase="false" />
18 <conditions>
19 <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
20 </conditions>
21 <action type="Redirect" redirectType="Permanent" url="/{R:1}" />
22 </rule>
23 <rule name="Imported Rule 2" stopProcessing="true">
24 <match url="^" ignoreCase="false" />
25 <conditions>
26 <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
27 <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
28 </conditions>
29 <action type="Rewrite" url="index.php" />
30 </rule>
31 </rules>
32 </rewrite>
33 <httpErrors errorMode="Detailed" />
34</system.webServer>