/
web.config
205 lines (156 loc) · 10.5 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
197
198
199
200
201
202
203
204
205
<?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="^([^=]*)pages/(modules|modules\_custom)/([^/]*)\.php$" ignoreCase="false" />
<action type="Redirect" redirectType="Found" url="^([^=]*)pages/(modules|modules\_custom)/([^/]*)\.php$" appendQueryString="true" />
</rule>
<!-- PG STYLE: These have a specially reduced form (no need to make it too explicit that these are Wiki+). We shouldn't shorten them too much, or the actual zone or base url might conflict-->
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^([^=]*)pg/s/([^\&\?]*)/index\.php$" ignoreCase="false" />
<action type="Rewrite" url="^([^=]*)pg/s/([^\&\?]*)/index\.php$" appendQueryString="true" />
</rule>
<!-- PG STYLE: These are standard patterns-->
<rule name="Imported Rule 4" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)/([^\&\?]*)/index\.php(.*)$" ignoreCase="false" />
<action type="Rewrite" url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)/([^\&\?]*)/index\.php(.*)$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 4" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)/index\.php(.*)$" ignoreCase="false" />
<action type="Rewrite" url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)/index\.php(.*)$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 4" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?]*)/index\.php(.*)$" ignoreCase="false" />
<action type="Rewrite" url="^([^=]*)pg/([^/\&\?]*)/index\.php(.*)$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 4" stopProcessing="true">
<match url="^([^=]*)pg/index\.php(.*)$" ignoreCase="false" />
<action type="Rewrite" url="^([^=]*)pg/index\.php(.*)$" appendQueryString="true" />
</rule>
<!-- PG STYLE: Now the same as the above sets, but without any additional parameters (and thus no index.php)-->
<rule name="Imported Rule 5" stopProcessing="true">
<match url="^([^=]*)pg/s/([^\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="^([^=]*)pg/s/([^\&\?]*)$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 5" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)/([^\&\?]*)/$" ignoreCase="false" />
<action type="Rewrite" url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)/([^\&\?]*)/$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 5" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)/([^\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)/([^\&\?]*)$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 5" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="^([^=]*)pg/([^/\&\?]*)/([^/\&\?]*)$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 5" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="^([^=]*)pg/([^/\&\?]*)$" appendQueryString="true" />
</rule>
<!-- PG STYLE: 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 6" stopProcessing="true">
<match url="^([^=]*)pg/s/([^\&\?\.]*)&(.*)$" ignoreCase="false" />
<action type="Rewrite" url="^([^=]*)pg/s/([^\&\?\.]*)&(.*)$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 6" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?\.]*)/([^/\&\?\.]*)/([^/\&\?\.]*)&(.*)$" ignoreCase="false" />
<action type="Rewrite" url="^([^=]*)pg/([^/\&\?\.]*)/([^/\&\?\.]*)/([^/\&\?\.]*)&(.*)$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 6" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?\.]*)/([^/\&\?\.]*)&(.*)$" ignoreCase="false" />
<action type="Rewrite" url="^([^=]*)pg/([^/\&\?\.]*)/([^/\&\?\.]*)&(.*)$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 6" stopProcessing="true">
<match url="^([^=]*)pg/([^/\&\?\.]*)&(.*)$" ignoreCase="false" />
<action type="Rewrite" url="^([^=]*)pg/([^/\&\?\.]*)&(.*)$" appendQueryString="true" />
</rule>
<!-- HTM STYLE: These have a specially reduced form (no need to make it too explicit that these are Wiki+). We shouldn't shorten them too much, or the actual zone or base url might conflict-->
<rule name="Imported Rule 7" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/s/([^\&\?]*)\.htm$" ignoreCase="false" />
<action type="Rewrite" url="^(site|forum|adminzone|cms|collaboration)/s/([^\&\?]*)\.htm$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 7" stopProcessing="true">
<match url="^s/([^\&\?]*)\.htm$" ignoreCase="false" />
<action type="Rewrite" url="^s/([^\&\?]*)\.htm$" appendQueryString="true" />
</rule>
<!-- HTM STYLE: These are standard patterns-->
<rule name="Imported Rule 9" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)/([^/\&\?]*)/([^\&\?]*)\.htm$" ignoreCase="false" />
<action type="Rewrite" url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)/([^/\&\?]*)/([^\&\?]*)\.htm$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 9" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)/([^/\&\?]*)\.htm$" ignoreCase="false" />
<action type="Rewrite" url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)/([^/\&\?]*)\.htm$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 9" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)\.htm$" ignoreCase="false" />
<action type="Rewrite" url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)\.htm$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 9" stopProcessing="true">
<match url="^([^/\&\?]+)/([^/\&\?]*)/([^\&\?]*)\.htm$" ignoreCase="false" />
<action type="Rewrite" url="^([^/\&\?]+)/([^/\&\?]*)/([^\&\?]*)\.htm$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 9" stopProcessing="true">
<match url="^([^/\&\?]+)/([^/\&\?]*)\.htm$" ignoreCase="false" />
<action type="Rewrite" url="^([^/\&\?]+)/([^/\&\?]*)\.htm$" appendQueryString="true" />
</rule>
<rule name="Imported Rule 9" stopProcessing="true">
<match url="^([^/\&\?]+)\.htm$" ignoreCase="false" />
<action type="Rewrite" url="^([^/\&\?]+)\.htm$" appendQueryString="true" />
</rule>
<!-- SIMPLE STYLE: These have a specially reduced form (no need to make it too explicit that these are Wiki+). We shouldn't shorten them too much, or the actual zone or base url might conflict-->
<--<rule name="Imported Rule 10" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/s/([^\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="^(site|forum|adminzone|cms|collaboration)/s/([^\&\?]*)$" appendQueryString="true" />
</rule>-->
<--<rule name="Imported Rule 10" stopProcessing="true">
<match url="^s/([^\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="^s/([^\&\?]*)$" appendQueryString="true" />
</rule>-->
<!-- SIMPLE STYLE: These are standard patterns-->
<--<rule name="Imported Rule 12" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)/([^/\&\?]*)/([^\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)/([^/\&\?]*)/([^\&\?]*)$" appendQueryString="true" />
</rule>-->
<--<rule name="Imported Rule 12" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)/([^/\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)/([^/\&\?]*)$" appendQueryString="true" />
</rule>-->
<--<rule name="Imported Rule 12" stopProcessing="true">
<match url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)$" ignoreCase="false" />
<action type="Rewrite" url="^(site|forum|adminzone|cms|collaboration)/([^/\&\?]+)$" appendQueryString="true" />
</rule>-->
<--<rule name="Imported Rule 12" stopProcessing="true">
<match url="^([^/\&\?]+)/([^/\&\?]*)/([^\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="^([^/\&\?]+)/([^/\&\?]*)/([^\&\?]*)$" appendQueryString="true" />
</rule>-->
<--<rule name="Imported Rule 12" stopProcessing="true">
<match url="^([^/\&\?]+)/([^/\&\?]*)$" ignoreCase="false" />
<action type="Rewrite" url="^([^/\&\?]+)/([^/\&\?]*)$" appendQueryString="true" />
</rule>-->
<--<rule name="Imported Rule 12" stopProcessing="true">
<match url="^([^/\&\?]+)$" ignoreCase="false" />
<action type="Rewrite" url="^([^/\&\?]+)$" appendQueryString="true" />
</rule>-->
</rules>
</rewrite>
<defaultDocument>
<files>
<clear />
<add value="index.html" />
<add value="index.php" />
</files>
</defaultDocument>
<!-- 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>
</configuration>