-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathweb.config.iis
31 lines (31 loc) · 1.31 KB
/
web.config.iis
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
IIS configuration to enable URL rewriting. Requires the Application Request Routing module installed for IIS
-->
<configuration>
<system.webServer>
<directoryBrowse enabled="false" />
<staticContent>
<remove fileExtension=".woff" />
<remove fileExtension=".svg" />
<remove fileExtension=".czml" />
<remove fileExtension=".kml" />
<mimeMap fileExtension=".woff" mimeType="application/x-woff" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<mimeMap fileExtension=".czml" mimeType="application/json" />
<mimeMap fileExtension=".kml" mimeType="application/vnd.google-earth.kml+xml" />
</staticContent>
<rewrite>
<rules>
<rule name="some-name" patternSyntax="Wildcard">
<match url="*"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>