Skip to content

Commit 76e941a

Browse files
committed
Added system.webServer section to web.config for extensionless URL support.
1 parent ade79e2 commit 76e941a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

input/Web.config

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
<?xml version="1.0"?>
22
<configuration>
3+
<system.webServer>
4+
<rewrite>
5+
<rules>
6+
<rule name="html">
7+
<match url="(.*)" />
8+
<conditions>
9+
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
10+
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
11+
</conditions>
12+
<action type="Rewrite" url="{R:1}.html" />
13+
</rule>
14+
</rules>
15+
</rewrite>
16+
</system.webServer>
317
<system.web>
418
<compilation debug="true" targetFramework="4.0">
519
<assemblies>

0 commit comments

Comments
 (0)