forked from CGAL/cgal-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
321 lines (224 loc) · 10.5 KB
/
.htaccess
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
AddOutputFilter INCLUDES .html
<Files "robots.txt">
AddOutputFilter INCLUDES txt
</Files>
AddType application/pdf .pdf
RewriteEngine on
# Enforce https
# Has to be first, before the redirection to www.cgal.org
# Verify on https://hstspreload.org/?domain=cgal.org
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
# Redirect cgal.org to www.cgal.org
RewriteCond %{HTTP_HOST} ^cgal.org
RewriteRule (.*) https://www.cgal.org/$1 [R=301,L]
# Activate HSTS
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS
# Redirect page removed from the web site in April 2015
Redirect permanent /platforms.html http://doc.cgal.org/latest/Manual/installation.html#seccompilers
Redirect permanent /windows_installation.html /download/windows.html
Redirect permanent /grass.html /news/2014/04/01/GoogleGrass/
Redirect permanent /philosophy.html /exact.html
Redirect permanent /questionnaire.html https://fr.surveymonkey.com/r/?sm=r1cY4ooW6OIeySeh%2fhr2AA%3d%3d
# Wrong links used in the various annoucement of CGAL-4.10
Redirect permanent /2017/05/24/cgal410/ /2017/05/29/cgal410/
Redirect permanent /2017/05/27/cgal410/ /2017/05/29/cgal410/
AddHandler type-map .var
RedirectMatch permanent ^/index2.html /
RedirectMatch permanent ^/history.html /partners.html
RedirectMatch permanent ^/other_languages.html /
RedirectMatch permanent ^/publications_frame.html /bibliography.html
RedirectMatch permanent ^/([^/]+)_frame.html /$1.html
RedirectMatch permanent ^/upcoming http://upcoming.cgal.org
RedirectMatch permanent ^/packages /Manual/latest/doc_html/cgal_manual/packages.html
# link to the latest release
Redirect /download/last https://github.com/CGAL/cgal/releases
# link to the latest beta release
Redirect /download/beta https://github.com/CGAL/cgal/releases/tag/releases/CGAL-4.13-beta1
Redirect permanent /archive.html /news.html
RedirectMatch seeother ^/download/([0-9].*) https://github.com/CGAL/cgal/releases/tag/releases/CGAL-$1
RedirectMatch seeother ^/Pkg/(.*) http://doc.cgal.org/latest/Manual/packages.html#Pkg$1Summary
RedirectMatch seeother ^/Part/(.*) http://doc.cgal.org/latest/Manual/packages.html#Part$1
# An alias for shorter urls to the CGAL Developers Wiki
RedirectMatch seeother ^/wiki/(.*) https://cgal.geometryfactory.com/CGAL/Members/wiki/$1
RewriteRule ^xredirect:(.+) /cgi-bin/nph-xredirect.cgi/$1 \
[T=application/x-httpd-cgi,L]
# Redirect from /Manual/3.5/ or /Manual/last/ to the correspoding TOC of
# the manual. It does not match /Manual/3.5/something...
RewriteRule ^Manual/([^/]*)/$ /Manual/$1/doc_html/cgal_manual/contents.html [R]
# If one demo does not exists in demo/3.5/, then use the one in demo/
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/3.5/(.*) /demo/$1 [R]
# Redirect 3.5.1 to 3.5
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/3.5.1/(.*) /demo/3.5/$1 [R]
# Same for 3.6->3.5.1
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/3.6/(.*) /demo/3.5.1/$1 [R]
# Redirect 3.6.1 to 3.6
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/3.6.1/(.*) /demo/3.6/$1 [R]
# Same for 3.7->3.6
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/3.7/(.*) /demo/3.6/$1 [R]
# Same for 3.7.1->3.7
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/3.7.1/(.*) /demo/3.7/$1 [R]
# Same for 3.8->3.7
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/3.8/(.*) /demo/3.7/$1 [R]
# Same for 3.8.1->3.8
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/3.8.1/(.*) /demo/3.8/$1 [R]
# Same for 3.9->3.8
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/3.9/(.*) /demo/3.8/$1 [R]
# Same for 3.9.1->3.9
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/3.9.1/(.*) /demo/3.9/$1 [R]
# Same for 3.10->3.9
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/3.10/(.*) /demo/3.9/$1 [R]
# Same for 3.10.1->3.10
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/3.10.1/(.*) /demo/3.10/$1 [R]
# Same for 3.11->3.10
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/3.11/(.*) /demo/3.10/$1 [R]
# Same for 3.11.1->3.11
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/3.11.1/(.*) /demo/3.11/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.0/(.*) /demo/3.9/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.0.1/(.*) /demo/4.0/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.0.2/(.*) /demo/4.0.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.0.3/(.*) /demo/4.0.2/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.1/(.*) /demo/4.0/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.1.1/(.*) /demo/4.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.1.2/(.*) /demo/4.1.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.2/(.*) /demo/4.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.2.1/(.*) /demo/4.2/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.2.2/(.*) /demo/4.2.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.3/(.*) /demo/4.2/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.3.1/(.*) /demo/4.3/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.3.2/(.*) /demo/4.3.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.4/(.*) /demo/4.3/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.4.1/(.*) /demo/4.4/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.5/(.*) /demo/4.4/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.5.1/(.*) /demo/4.5/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.5.2/(.*) /demo/4.5.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.6/(.*) /demo/4.5/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.6.1/(.*) /demo/4.6/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.6.2/(.*) /demo/4.6.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.6.3/(.*) /demo/4.6.2/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.7/(.*) /demo/4.6/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.7.1/(.*) /demo/4.7/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.7.2/(.*) /demo/4.7.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.7.3/(.*) /demo/4.7.2/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.8/(.*) /demo/4.7/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.8.1/(.*) /demo/4.8/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.8.2/(.*) /demo/4.8.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.8.3/(.*) /demo/4.8.2/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.9/(.*) /demo/4.8/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.9.1/(.*) /demo/4.9/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.9.2/(.*) /demo/4.9.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.9.3/(.*) /demo/4.9.2/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.10/(.*) /demo/4.9/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.10.1/(.*) /demo/4.10/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.10.2/(.*) /demo/4.10.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.10.3/(.*) /demo/4.10.2/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.11/(.*) /demo/4.9/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.11.1/(.*) /demo/4.11/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.11.2/(.*) /demo/4.11.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.11.3/(.*) /demo/4.11.2/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.12/(.*) /demo/4.11/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.12.1/(.*) /demo/4.12/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.12.2/(.*) /demo/4.12.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.12.3/(.*) /demo/4.12.2/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.13/(.*) /demo/4.12/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.13.1/(.*) /demo/4.13/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.13.2/(.*) /demo/4.13.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.13.3/(.*) /demo/4.13.2/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.14/(.*) /demo/4.13/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.14.1/(.*) /demo/4.14/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.14.2/(.*) /demo/4.14.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.14.3/(.*) /demo/4.14.2/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/4.14.4/(.*) /demo/4.14.3/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/5.0/(.*) /demo/4.14/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/5.0.1/(.*) /demo/5.0/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/5.0.2/(.*) /demo/5.0.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/5.0.3/(.*) /demo/5.0.2/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/5.1/(.*) /demo/5.0/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/5.1.1/(.*) /demo/5.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/5.1.2/(.*) /demo/5.1.1/$1 [R]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule demo/5.1.3/(.*) /demo/5.1.2/$1 [R]
# Redirect last version of the manual /Manual/4.5/ to /Manual/latest/
RewriteRule ^Manual/4.5/(.*) /Manual/latest/$1 [R]
# Redirect "last" to "latest"
RewriteRule ^Manual/last(.*) /Manual/latest$1 [R=permanent]
# What is that redirection for? -- Laurent Rineau, 2013/10/18
RedirectMatch seeother ^latest /Manual/latest/
# Special rule, to test the rewrite map:
#RewriteRule ^test-cgal_manual/(.*\.html)$ http://doc.cgal.org/latest/${pages:$1|BUG-pages} [R=seeother]