-
Notifications
You must be signed in to change notification settings - Fork 16
/
web.config
196 lines (184 loc) · 11.6 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<!--# Redirect away from modules called directly by URL. Helpful as it allows you to "run" a module file in a debugger and still see it running.-->
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^([^=]*)webdav.php/([^=]*)pages/(modules|modules_custom)/([^/]*)\.php$" ignoreCase="false" />
<action type="None" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^([^=]*)pages/(modules|modules_custom)/([^/]*)\.php$" ignoreCase="false" />
<action type="Redirect" redirectType="Found" url="{R:1}index.php\?page={R:3}" appendQueryString="true" />
</rule>
<!--# These have a specially reduced form (no need to make it too explicit that these are CEDI)-->
<!--# We shouldn't shorten them too much, or the actual zone or base url might conflict-->
<rule name="Imported Rule 3" stopProcessing="true">
<match url="^([^=]*)pg/s/([^\&\?]*)/index\.php$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page=cedi&id={R:2}" appendQueryString="true" />
</rule>
<!--# These have a specially reduce form (wide is implied)-->
<rule name="Imported Rule 4" stopProcessing="true">
<match url="^([^=]*)pg/galleries/image/([^\&\?]*)/index\.php(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page=galleries&type=image&id={R:2}&wide=1{R:3}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 5" stopProcessing="true">
<match url="^([^=]*)pg/galleries/video/([^\&\?]*)/index\.php(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page=galleries&type=video&id={R:2}&wide=1{R:3}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 6" stopProcessing="true">
<match url="^([^=]*)pg/iotds/view/([^\&\?]*)/index\.php(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page=iotds&type=view&id={R:2}&wide=1{R:3}" appendQueryString="true" />
</rule>
<!--# These are standard patterns-->
<rule name="Imported Rule 7" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)/([^\&\?]*)/index\.php(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page={R:2}&type={R:3}&id={R:4}{R:5}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 8" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)/index\.php(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page={R:2}&type={R:3}{R:4}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 9" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?]*)/index\.php(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page={R:2}{R:3}" appendQueryString="true" />
</rule>
<!--# This one is weird... apache strips out // and turns to /, thus requiring an extra pattern...-->
<rule name="Imported Rule 10" stopProcessing="true">
<match url="^([^=]*)pg/index\.php(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page={R:3}" appendQueryString="true" />
</rule>
<!--# Now the same, but without any additional parameters (and thus no index.php)-->
<rule name="Imported Rule 11" stopProcessing="true">
<match url="^([^=]*)pg/s/([^\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page=cedi&id={R:2}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 12" stopProcessing="true">
<match url="^([^=]*)pg/galleries/image/([^\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page=galleries&type=image&id={R:2}&wide=1{R:3}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 13" stopProcessing="true">
<match url="^([^=]*)pg/galleries/video/([^\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page=galleries&type=video&id={R:2}&wide=1{R:3}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 14" stopProcessing="true">
<match url="^([^=]*)pg/iotds/view/([^\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page=iotds&type=view&id={R:2}&wide=1" appendQueryString="true" />
</rule>
<rule name="Imported Rule 15" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)/([^\&\?]*)/$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page={R:2}&type={R:3}&id={R:4}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 16" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)/([^\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page={R:2}&type={R:3}&id={R:4}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 17" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page={R:2}&type={R:3}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 18" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?page={R:2}" appendQueryString="true" />
</rule>
<!--# And these for those nasty situations where index.php was missing and we couldn't do anything about it (usually due to keep_session creeping into a semi-cached URL)-->
<rule name="Imported Rule 19" stopProcessing="true">
<match url="^([^=]*)pg/s/([^\&\?\.]*)&(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?{R:3}&page=cedi&id={R:2}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 20" stopProcessing="true">
<match url="^([^=]*)pg/galleries/image/([^/\&\?\.]*)&(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?{R:5}&page=galleries&type=image&id={R:2}&wide=1&{R:3}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 21" stopProcessing="true">
<match url="^([^=]*)pg/galleries/video/([^/\&\?\.]*)&(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?{R:5}&page=galleries&type=video&id={R:2}&wide=1&{R:3}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 22" stopProcessing="true">
<match url="^([^=]*)pg/iotds/view/([^/\&\?\.]*)&(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?{R:3}&page=iotds&type=view&id={R:2}&wide=1" appendQueryString="true" />
</rule>
<rule name="Imported Rule 23" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?\.]*)/([^/\&\?\.]*)/([^/\&\?\.]*)&(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?{R:5}&page={R:2}&type={R:3}&id={R:4}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 24" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?\.]*)/([^/\&\?\.]*)&(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?{R:4}&page={R:2}&type={R:3}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 25" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?\.]*)&(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}index.php\?{R:3}&page={R:2}" appendQueryString="true" />
</rule>
<!--# These have a specially reduced form (no need to make it too explicit that these are CEDI)-->
<!--# We shouldn't shorten them too much, or the actual zone or base url might conflict-->
<rule name="Imported Rule 26" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/s/([^\&\?]*)\.htm(\?.*)?$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/index.php\?page=cedi&id={R:2}&{R:3}" appendQueryString="true" />
</rule>
<!--# These have a specially reduce form (wide is implied)-->
<rule name="Imported Rule 27" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/galleries/image/([^\&\?]*)\.htm(\?.*)?$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/index.php\?page=galleries&type=image&id={R:2}&wide=1&{R:3}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 28" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/galleries/video/([^\&\?]*)\.htm(\?.*)?$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/index.php\?page=galleries&type=video&id={R:2}&wide=1&{R:3}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 29" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/iotds/view/([^\&\?]*)\.htm(\?.*)?$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/index.php\?page=iotds&type=view&id={R:2}&wide=1{R:3}" appendQueryString="true" />
</rule>
<!--# These are standard patterns-->
<rule name="Imported Rule 30" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)/([^/\&\?]*)/([^\&\?]*)\.htm(\?.*)?$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/index.php\?page={R:2}&type={R:3}&id={R:4}&{R:5}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 31" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)/([^/\&\?]*)\.htm(\?.*)?$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/index.php\?page={R:2}&type={R:3}&{R:4}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 32" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)\.htm(\?.*)?$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/index.php\?page={R:2}&{R:3}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 33" stopProcessing="true">
<match url="^([^/\&\?]+)/([^/\&\?]*)/([^\&\?]*)\.htm(\?.*)?$" ignoreCase="false" />
<action type="Rewrite" url="index.php\?page={R:1}&type={R:2}&id={R:3}&{R:4}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 34" stopProcessing="true">
<match url="^([^/\&\?]+)/([^/\&\?]*)\.htm(\?.*)?$" ignoreCase="false" />
<action type="Rewrite" url="index.php\?page={R:1}&type={R:2}&{R:3}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 35" stopProcessing="true">
<match url="^([^/\&\?]+)\.htm(\?.*)?$" ignoreCase="false" />
<action type="Rewrite" url="index.php\?page={R:1}&{R:2}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
<defaultDocument>
<files>
<clear />
<add value="index.html" />
<add value="index.php" />
</files>
</defaultDocument>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2097152000" />
<!--2GB; also see maxRequestLength-->
</requestFiltering>
</security>
<!-- HTTP Errors section should only be enabled if the "Error Pages"
feature has been delegated as "Read/Write" at the Web Server level.
<httpErrors>
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/index.php?page=404" responseMode="ExecuteURL" />
</httpErrors>
-->
</system.webServer>
<system.web>
<httpRuntime maxRequestLength="2048000" />
</system.web>
</configuration>