This repository has been archived by the owner on Dec 21, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.config
39 lines (39 loc) · 2.26 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
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" enabled="true" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" negate="true" pattern="^www\." ignoreCase="false" />
</conditions>
<action type="Redirect" url="http://www.{HTTP_HOST}/{R:1}" redirectType="Permanent" />
</rule>
<rule name="Imported Rule 2" enabled="true" stopProcessing="true">
<match url="\.(css|jpe?g|gif|png)$" ignoreCase="true" />
<action type="None" />
</rule>
<rule name="Imported Rule 3" enabled="true" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{SCRIPT_NAME}" pattern="^/[^\.]+[^/]$" ignoreCase="false" />
</conditions>
<action type="Redirect" url="http://{HTTP_HOST}/{R:1}/" redirectType="Permanent" />
</rule>
<rule name="Imported Rule 4" enabled="true" stopProcessing="true">
<match url="^([^/\.]+)/?$" ignoreCase="false" />
<action type="Rewrite" url="/index.php?location={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 5" enabled="true" stopProcessing="true">
<match url="^([^/\.]+)/([^/\.]+)/?$" ignoreCase="false" />
<action type="Rewrite" url="/index.php?location={R:1}&page={R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 6" enabled="true" stopProcessing="true">
<match url="^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$" ignoreCase="false" />
<action type="Rewrite" url="/index.php?location={R:1}&page={R:2}&var={R:3}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>