forked from GiancarloGomez/ColdFusion-OneLogin
-
Notifications
You must be signed in to change notification settings - Fork 4
/
web.config
executable file
·26 lines (26 loc) · 1.35 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
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Force -Slash" enabled="true" stopProcessing="true">
<match url="(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{URL}" pattern="(.*)/$" ignoreCase="false" negate="true" />
</conditions>
<action type="Redirect" url="{URL}/" redirectType="Permanent" />
</rule>
<rule name="Catch-All" stopProcessing="true">
<match url="^(.*)/$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<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="{R:1}.cfm" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>