This repository has been archived by the owner on Mar 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.config
35 lines (35 loc) · 1.53 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file provides out-of-the-box support for Microsoft IIS 7 or higher.
If you are using another webserver you can safely remove it. Do note that
the Rewrite Module (http://www.iis.net/download/urlrewrite) is not (always)
installed by default, but required for the proper working of the rules
defined in the <rewrite> section of <system.webServer>.
-->
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="Set Webroot">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
</conditions>
<action type="Rewrite" url="app/webroot/{R:1}" />
</rule>
<rule name="Lithium Redirect">
<match url="app/webroot/(.*)" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}" pattern="favicon.ico$" negate="true" />
</conditions>
<action type="Rewrite" url="app/webroot/index.php?url={R:1}" />
</rule>
</rules>
<rewriteMaps>
<rewriteMap name="Rewrite To Webroot from Root" />
</rewriteMaps>
</rewrite>
</system.webServer>
</configuration>