forked from fuel/fuel
-
Notifications
You must be signed in to change notification settings - Fork 3
/
web.config
57 lines (53 loc) · 1.85 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
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<security>
<requestFiltering>
<denyUrlSequences>
<add sequence=".*[^(index)].php" />
</denyUrlSequences>
<alwaysAllowedUrls>
<add url="index.php" />
</alwaysAllowedUrls>
<hiddenSegments>
<add segment="fuel" />
</hiddenSegments>
<fileExtensions>
<add fileExtension=".yml" allowed="false" />
<add fileExtension=".htaccess" allowed="false" />
</fileExtensions>
</requestFiltering>
</security>
<defaultDocument>
<files>
<remove value="index.php" />
<add value="index.php" />
</files>
</defaultDocument>
<modules runAllManagedModulesForAllRequests="true" />
<rewrite>
<rules>
<rule name="No WWW" enabled="true" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^www\.(.*)$" />
</conditions>
<action type="Redirect" url="http://{C:1}/{R:1}" redirectType="Permanent" />
</rule>
<rule name="Octaplus" enabled="true" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" ignoreCase="false" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="index.php?uri=/{R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
<!-- <asp scriptErrorSentToBrowser="true"/> -->
<!-- <httpErrors errorMode="Detailed"/> -->
</system.webServer>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>