-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWeb.config
More file actions
45 lines (45 loc) · 2.1 KB
/
Web.config
File metadata and controls
45 lines (45 loc) · 2.1 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
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="rule utils" stopProcessing="true">
<match url="^_apps/(.*)$"/>
<action type="Rewrite" url="_apps/{R:1}" appendQueryString="true" />
</rule>
<rule name="rule 1G" stopProcessing="true">
<match url="^robots\.txt$" ignoreCase="true" />
<action type="Rewrite" url="index.php?plugin=Robotstxt" />
</rule>
<rule name="rule 2G" stopProcessing="true">
<match url="^sitemap\.xml$" ignoreCase="true" />
<action type="Rewrite" url="index.php?plugin=Sitemap" />
</rule>
<rule name="rule 4G" stopProcessing="true">
<match url="^img/[0-9]+/(.*)\.(jpg|jpeg|png|bmp|gif|JPG|JPEG|PNG|BMP|GIF)$"/>
<action type="Rewrite" url="index.php?plugin=ShowImage&path={R:1}.{R:2}" appendQueryString="true" />
</rule>
<rule name="rule 5G" stopProcessing="true">
<match url="^(.*)\.(txt|csv|xml|XML|CSV|woff|ttf|php|asp|html|css|js|json|jpg|jpeg|png|bmp|gif|JPG|JPEG|PNG|BMP|GIF)$"/>
<action type="Rewrite" url="{R:1}.{R:2}" appendQueryString="true" />
</rule>
<rule name="Rule 1515" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="(./)$" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="^(.)$" ignoreCase="false" negate="true" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="{R:1}/" />
</rule>
<rule name="rule 8G" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{URL}" pattern="^(.)$" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?md={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>