-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb.config
More file actions
35 lines (31 loc) · 1.16 KB
/
web.config
File metadata and controls
35 lines (31 loc) · 1.16 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
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors errorMode="Custom" existingResponse="Replace">
<!-- 403 için -->
<remove statusCode="403" />
<error statusCode="403" path="/devs/403.html" responseMode="ExecuteURL" />
<!-- 404 için -->
<remove statusCode="404" />
<error statusCode="404" path="/devs/404.html" responseMode="ExecuteURL" />
<!-- 500 için -->
<remove statusCode="500" />
<error statusCode="500" path="/devs/500.html" responseMode="ExecuteURL" />
</httpErrors>
<rewrite>
<rules>
<rule name="Remove .php extension" stopProcessing="true">
<match url="^(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="{R:1}.php" />
</rule>
</rules>
</rewrite>
<staticContent>
<mimeMap fileExtension=".webp" mimeType="image/webp" />
</staticContent>
</system.webServer>
</configuration>