-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.config
41 lines (41 loc) · 2.29 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
40
41
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="登陆页面" stopProcessing="true">
<match url="login.html" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?s=Admin/Public/login" appendQueryString="false" />
</rule>
<rule name="数据提交页面" stopProcessing="true">
<match url="postAdd.html(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?s=Admin/Public/getPostAdd{R:1}" appendQueryString="false" />
</rule>
<rule name="web展示页" stopProcessing="true">
<match url="wordEdit_(.*).html(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?s=Admin/EditStyle/web/name/{R:1}{R:2}" appendQueryString="false" />
</rule>
<rule name="手机展示页" stopProcessing="true">
<match url="wordEditMobile_(.*).html(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?s=Admin/EditStyle/mobile/name/{R:1}{R:2}" appendQueryString="false" />
</rule>
<rule name="默认" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" />
</rule>
</rules>
<rewriteMaps>
<rewriteMap name="/index.php?s=Admin/Public/login" />
</rewriteMaps>
</rewrite>
</system.webServer>
</configuration>