-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathweb.config
35 lines (35 loc) · 1.71 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
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="HTTPS Redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" />
</rule>
<rule name="/help Redirect" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny" trackAllCaptures="false">
<add input="{HTTP_HOST}{REQUEST_URI}" pattern="(.*).kcc.edu/help" />
</conditions>
<action type="Redirect" url="https://form.jotform.com/81775152814965" redirectType="Permanent"/>
</rule>
</rules>
</rewrite>
<httpErrors>
<remove statusCode="401" subStatusCode="-1" />
<remove statusCode="403" subStatusCode="-1" />
<remove statusCode="404" subStatusCode="-1" />
<remove statusCode="500" subStatusCode="-1" />
<!-- full url when responsemode is Redirect -->
<error statusCode="401" path="/404.html" responseMode="Redirect" />
<!-- local relative path when responsemode is ExecuteURL -->
<error statusCode="403" path="/404.html" responseMode="ExecuteURL" />
<error statusCode="404" path="/404.html" responseMode="ExecuteURL" />
<error statusCode="500" path="/404.html" responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>
</configuration>