-
Notifications
You must be signed in to change notification settings - Fork 1
/
web.config
35 lines (35 loc) · 2.66 KB
/
web.config
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
28
29
30
31
32
33
34
35
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="RewriteHTML">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions> <action type="Rewrite" url="{R:1}.html" />
</rule>
</rules>
</rewrite>
<httpErrors>
<remove statusCode="401" subStatusCode="-1" />
<remove statusCode="412" subStatusCode="-1" />
<remove statusCode="501" subStatusCode="-1" />
<remove statusCode="406" subStatusCode="-1" />
<remove statusCode="405" subStatusCode="-1" />
<remove statusCode="500" subStatusCode="-1" />
<remove statusCode="403" subStatusCode="-1" />
<remove statusCode="502" subStatusCode="-1" />
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="http://dominicwarren.com/error/404" responseMode="Redirect" />
<error statusCode="502" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="http://dominicwarren.com/error/502" responseMode="Redirect" />
<error statusCode="403" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="http://dominicwarren.com/error/403" responseMode="Redirect" />
<error statusCode="500" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="http://dominicwarren.com/error/500" responseMode="Redirect" />
<error statusCode="405" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="http://dominicwarren.com/error/405" responseMode="Redirect" />
<error statusCode="406" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="http://dominicwarren.com/error/406" responseMode="Redirect" />
<error statusCode="501" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="http://dominicwarren.com/error/501" responseMode="Redirect" />
<error statusCode="412" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="http://dominicwarren.com/error/412" responseMode="Redirect" />
<error statusCode="401" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="http://dominicwarren.com/error/401" responseMode="Redirect" />
</httpErrors>
</system.webServer>
</configuration>