-
Notifications
You must be signed in to change notification settings - Fork 1
/
web.config
45 lines (45 loc) · 1.89 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
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="false" />
<defaultDocument>
<files>
<clear />
<add value="index.php" />
</files>
</defaultDocument>
<httpErrors>
<remove statusCode="403" subStatusCode="-1" />
<remove statusCode="500" subStatusCode="-1" />
<remove statusCode="501" subStatusCode="-1" />
<error statusCode="403"
responseMode="ExecuteURL"
path="/index.php/RESERVED.TEENY-403.html?RESERVED_IISREDIRECT=1" />
<error statusCode="500"
responseMode="ExecuteURL"
path="/index.php/RESERVED.TEENY-500.html?RESERVED_IISREDIRECT=1" />
<error statusCode="501"
responseMode="ExecuteURL"
path="/index.php/RESERVED.TEENY-501.html?RESERVED_IISREDIRECT=1" />
</httpErrors>
<rewrite>
<rules>
<rule name="Ignore hidden files" stopProcessing="true">
<match url="(^\.|/\.)" />
<action type="Rewrite" url="index.php" />
</rule>
<rule name="Redirect to public folder" stopProcessing="false">
<match url="^(.*)" />
<action type="Rewrite" url="public/{R:1}" />
</rule>
<rule name="Redirect all urls to index.php if no exits files" stopProcessing="true">
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<match url="^public/" />
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>