forked from inphinit/inphinit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb.config
More file actions
41 lines (41 loc) · 1.82 KB
/
web.config
File metadata and controls
41 lines (41 loc) · 1.82 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.php" />
</files>
</defaultDocument>
<httpErrors>
<remove statusCode="401" subStatusCode="-1" />
<remove statusCode="403" subStatusCode="-1" />
<remove statusCode="501" subStatusCode="-1" />
<error statusCode="401"
responseMode="ExecuteURL"
path="/index.php/RESERVED.INPHINIT-401.html?RESERVED_IISREDIRECT=1" />
<error statusCode="403"
responseMode="ExecuteURL"
path="/index.php/RESERVED.INPHINIT-403.html?RESERVED_IISREDIRECT=1" />
<error statusCode="501"
responseMode="ExecuteURL"
path="/index.php/RESERVED.INPHINIT-501.html?RESERVED_IISREDIRECT=1" />
</httpErrors>
<rewrite>
<rules>
<rule name="Disable protected folders and files" stopProcessing="true">
<match url="(^\.|\/\.|^system/|system$)" ignoreCase="true" />
<action type="Rewrite" url="index.php" />
</rule>
<rule name="Redirect to routes" stopProcessing="true">
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<match url="^" ignoreCase="false" />
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>