forked from lincanbin/Carbon-Forum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.config
151 lines (151 loc) · 8.97 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Carbon Forum Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^94cb.com$" />
</conditions>
<action type="Redirect" url="http://www.94cb.com/{R:1}" redirectType="Permanent" />
</rule>
<rule name="Carbon Forum Rule 4">
<match url=".*" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_METHOD}" pattern="^TRACE" ignoreCase="false" />
</conditions>
<action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
<rule name="Carbon Forum Rule 5" stopProcessing="true">
<match url="^includes" ignoreCase="false" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
<rule name="Carbon Forum Rule 6" stopProcessing="true">
<match url="^styles/default/template" ignoreCase="false" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
<rule name="Carbon Forum Rule 7" stopProcessing="true">
<match url="^styles/mobile/template" ignoreCase="false" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
<rule name="Carbon Forum Rule 8" stopProcessing="true">
<match url="^styles/api/template" ignoreCase="false" />
<action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
<rule name="Carbon Forum Rule 9" stopProcessing="true">
<match url="^dashboard$" ignoreCase="false" />
<action type="Rewrite" url="dashboard.php" />
</rule>
<rule name="Carbon Forum Rule 10" stopProcessing="true">
<match url="^favorites(/page/([0-9]*))?$" ignoreCase="false" />
<action type="Rewrite" url="favorites.php?page={R:2}" />
</rule>
<rule name="Carbon Forum Rule 11" stopProcessing="true">
<match url="^forgot$" ignoreCase="false" />
<action type="Rewrite" url="forgot.php" />
</rule>
<rule name="Carbon Forum Rule 12" stopProcessing="true">
<match url="^goto/([0-9]+)-([0-9]+)$" ignoreCase="false" />
<action type="Rewrite" url="goto.php?topic_id={R:1}&post_id={R:2}" />
</rule>
<rule name="Carbon Forum Rule 13" stopProcessing="true">
<match url="^json/([0-9a-z_\-]+)$" ignoreCase="false" />
<action type="Rewrite" url="json.php?action={R:1}" />
</rule>
<rule name="Carbon Forum Rule 14" stopProcessing="true">
<match url="^login$" ignoreCase="false" />
<action type="Rewrite" url="login.php" />
</rule>
<rule name="Carbon Forum Rule 15" stopProcessing="true">
<match url="^manage$" ignoreCase="false" />
<action type="Rewrite" url="manage.php" />
</rule>
<rule name="Carbon Forum Rule 16" stopProcessing="true">
<match url="^new$" ignoreCase="false" />
<action type="Rewrite" url="new.php" />
</rule>
<rule name="Carbon Forum Rule 17" stopProcessing="true">
<match url="^notifications$" ignoreCase="false" />
<action type="Rewrite" url="notifications.php" />
</rule>
<rule name="Carbon Forum Rule 18" stopProcessing="true">
<match url="^oauth-([0-9]+)$" ignoreCase="false" />
<action type="Rewrite" url="oauth.php?app_id={R:1}" appendQueryString="true" />
</rule>
<rule name="Carbon Forum Rule 19" stopProcessing="true">
<match url="^page/([0-9]+)$" ignoreCase="false" />
<action type="Rewrite" url="index.php?page={R:1}" />
</rule>
<rule name="Carbon Forum Rule 20" stopProcessing="true">
<match url="^register$" ignoreCase="false" />
<action type="Rewrite" url="register.php" />
</rule>
<rule name="Carbon Forum Rule 21" stopProcessing="true">
<match url="^reply$" ignoreCase="false" />
<action type="Rewrite" url="reply.php" />
</rule>
<rule name="Carbon Forum Rule 22" stopProcessing="true">
<match url="^reset_password/(.*?)$" ignoreCase="false" />
<action type="Rewrite" url="reset_password.php?access_token={R:1}" />
</rule>
<rule name="Carbon Forum Rule 23" stopProcessing="true">
<match url="^robots.txt$" ignoreCase="false" />
<action type="Rewrite" url="robots.php" />
</rule>
<rule name="Carbon Forum Rule 24" stopProcessing="true">
<match url="^search.xml$" ignoreCase="false" />
<action type="Rewrite" url="open_search.php" />
</rule>
<rule name="Carbon Forum Rule 25" stopProcessing="true">
<match url="^search/(.*?)(/page/([0-9]*))?$" ignoreCase="false" />
<action type="Rewrite" url="search.php?keyword={R:1}&page={R:3}" />
</rule>
<rule name="Carbon Forum Rule 26" stopProcessing="true">
<match url="^settings$" ignoreCase="false" />
<action type="Rewrite" url="settings.php" />
</rule>
<rule name="Carbon Forum Rule 27" stopProcessing="true">
<match url="^sitemap-(topics|pages|tags|users|index)(-([0-9]+))?.xml$" ignoreCase="false" />
<action type="Rewrite" url="sitemap.php?action={R:1}&page={R:3}" />
</rule>
<rule name="Carbon Forum Rule 28" stopProcessing="true">
<match url="^statistics$" ignoreCase="false" />
<action type="Rewrite" url="statistics.php" />
</rule>
<rule name="Carbon Forum Rule 29" stopProcessing="true">
<match url="^t/([0-9]+)(-([0-9]*))?$" ignoreCase="false" />
<action type="Rewrite" url="topic.php?id={R:1}&page={R:3}" />
</rule>
<rule name="Carbon Forum Rule 30" stopProcessing="true">
<match url="^tag/(.*?)(/page/([0-9]*))?$" ignoreCase="false" />
<action type="Rewrite" url="tag.php?name={R:1}&page={R:3}" />
</rule>
<rule name="Carbon Forum Rule 31" stopProcessing="true">
<match url="^tags/following(/page/([0-9]*))?$" ignoreCase="false" />
<action type="Rewrite" url="favorite_tags.php?page={R:2}" />
</rule>
<rule name="Carbon Forum Rule 32" stopProcessing="true">
<match url="^tags(/page/([0-9]*))?$" ignoreCase="false" />
<action type="Rewrite" url="tags.php?page={R:2}" />
</rule>
<rule name="Carbon Forum Rule 33" stopProcessing="true">
<match url="^u/(.*?)$" ignoreCase="false" />
<action type="Rewrite" url="user.php?username={R:1}" />
</rule>
<rule name="Carbon Forum Rule 34" stopProcessing="true">
<match url="^users/following(/page/([0-9]*))?$" ignoreCase="false" />
<action type="Rewrite" url="favorite_users.php?page={R:2}" />
</rule>
<rule name="Carbon Forum Rule 35" stopProcessing="true">
<match url="^upload_controller$" ignoreCase="false" />
<action type="Rewrite" url="upload_controller.php" />
</rule>
<rule name="Carbon Forum Rule 36" stopProcessing="true">
<match url="^view-(desktop|mobile)$" ignoreCase="false" />
<action type="Rewrite" url="view.php?view={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>