-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathWeb.config
More file actions
27 lines (27 loc) · 1.29 KB
/
Web.config
File metadata and controls
27 lines (27 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="false" />
<rewrite>
<rules>
<rule name="md" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<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="md/index.php" logRewrittenUrl="true" />
</rule>
<rule name="Index Request" enabled="true" stopProcessing="true">
<match url="^$" />
<action type="Rewrite" url="md/index.php" appendQueryString="false" logRewrittenUrl="true" />
</rule>
<rule name="Markdown Files" enabled="true" stopProcessing="true">
<match url="\.md$" />
<action type="Rewrite" url="md/index.php" appendQueryString="false" logRewrittenUrl="true" />
</rule>
</rules>
</rewrite>
<httpErrors errorMode="Custom" />
</system.webServer>
</configuration>