forked from AKSW/OntoWiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.config
31 lines (31 loc) · 1.35 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
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="deny ini" verb="*" path="*.ini" type="System.Web.HttpForbiddenHandler" />
</handlers>
<rewrite>
<rules>
<rule name="Don't rewrite physical files" stopProcessing="true">
<match url="((extensions|libraries).*|\.(js|ico|gif|jpg|png|css|php|swf|json))$" />
<conditions logicalGrouping="MatchAny">
<add input="{REQUEST_FILENAME}" matchType="IsFile" pattern="" ignoreCase="false" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" pattern="" ignoreCase="false" />
</conditions>
<action type="None" />
</rule>
<rule name="Redirect favicon" stopProcessing="true">
<match url="^favicon\.(.*)$" />
<action type="Redirect" url="application/favicon.{R:1}" />
</rule>
<rule name="Rewrite" stopProcessing="true">
<match url="^.*$" />
<serverVariables>
<set name="ONTOWIKI_APACHE_MOD_REWRITE_ENABLED" value="true" />
</serverVariables>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>