-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb.config
More file actions
38 lines (38 loc) · 1.57 KB
/
web.config
File metadata and controls
38 lines (38 loc) · 1.57 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
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<!-- Make Index Default to index.php -->
<add value="index.php" />
</files>
</defaultDocument>
<rewrite>
<rules>
<clear />
<rule name="Routes" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
<!-- Rewrite Everything to Index.php -->
</rules>
</rewrite>
<staticContent>
<!-- <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00" /> -->
<mimeMap fileExtension=".webp" mimeType="image/webp" />
</staticContent>
<handlers>
<!-- Change Location PHP CGI Here (PHP with NTS Version) -->
<add name="PHP8 CGI" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="php-cgi.exe" resourceType="Either" requireAccess="Script" />
</handlers>
</system.webServer>
<system.web>
<roleManager enabled="false" />
<compilation debug="false" />
</system.web>
</configuration>