-
Notifications
You must be signed in to change notification settings - Fork 34
/
web.config
53 lines (53 loc) · 2.41 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
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule Default+Page" stopProcessing="true">
<match url="^default_([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?page={R:1}" />
</rule>
<rule name="Imported Rule Category+Page" stopProcessing="true">
<match url="^category-([0-9]+)_([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?cate={R:1}&page={R:2}" />
</rule>
<rule name="Imported Rule Category" stopProcessing="true">
<match url="^category-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?cate={R:1}" />
</rule>
<rule name="Imported Rule Author+Page" stopProcessing="true">
<match url="^author-([0-9]+)_([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?auth={R:1}&page={R:2}" />
</rule>
<rule name="Imported Rule Author" stopProcessing="true">
<match url="^author-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?auth={R:1}" />
</rule>
<rule name="Imported Rule Tags+Page" stopProcessing="true">
<match url="^tags-([0-9]+)_([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?tags={R:1}&page={R:2}" />
</rule>
<rule name="Imported Rule Tags" stopProcessing="true">
<match url="^tags-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?tags={R:1}" />
</rule>
<rule name="Imported Rule Date+Page" stopProcessing="true">
<match url="^date-([0-9\-]+)_([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?date={R:1}&page={R:2}" />
</rule>
<rule name="Imported Rule Date" stopProcessing="true">
<match url="^date-([0-9\-]+).html$" ignoreCase="false" />
<action type="Rewrite" url="catalog.asp?date={R:1}" />
</rule>
<rule name="Imported Rule Article" stopProcessing="true">
<match url="^post/(?!zb_)(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="view.asp?id={R:1}" />
</rule>
<rule name="Imported Rule Page" stopProcessing="true">
<match url="^(?!zb_)(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="view.asp?id={R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>