/
global.conf
695 lines (537 loc) · 45 KB
/
global.conf
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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
ExpiresActive on
## Fix locales
# bug 774675
RewriteRule ^/en/(.*)$ /en-US/$1 [L,R=301]
RewriteRule ^/es/(.*)$ /es-ES/$1 [L,R=301]
RewriteRule ^/pt/(.*)$ /pt-BR/$1 [L,R=301]
# bug 880182
RewriteRule ^/ja-JP-mac(/.*)? /ja$1 [L,R=301]
# bug 795970 - lowercase to uppercase, e.g. en-us to en-US
RewriteMap toupper int:toupper
RewriteRule ^/([a-z]{2})-([a-z]{2})/(.*) /$1-${toupper:$2}/$3 [L,R=301]
## Redirect things externally!
# bug 855734 - if request comes in with hostname that has a trailing ".", strip it off
# (note that Apache will put the hostname with "." stripped as the host of the
# redirect URL by default; we just need to "redirect" to the same URL)
RewriteCond %{HTTP_HOST} ^(.*)\.$
RewriteRule ^(.*)$ $1 [L,R=301]
# bug 845988 - remove double slashes in URLs
RewriteRule ^(.*)//(.*)$ $1/$2 [L,R=301]
# bug 764261, 841393
RewriteRule ^/zh-TW/$ http://mozilla.com.tw/ [L,R=301]
RewriteCond %{REQUEST_URI} !^/zh-TW/firefox/partners
RewriteRule ^/zh-TW/firefox(/.*)?$ http://mozilla.com.tw/firefox$1 [L,R=301]
RewriteRule ^/zh-TW/mobile/?$ http://mozilla.com.tw/firefox/mobile/ [L,R=301]
RewriteRule ^/zh-TW/download/?$ http://mozilla.com.tw/firefox/download/ [L,R=301]
RewriteRule ^/zh-TW/products(/.*)?$ http://mozilla.com.tw/products$1 [L,R=301]
# bug 845580
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?home/?$ /$1firefox/ [L,R=301]
# bug 948605
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/xp(.*)$ /firefox/ [L,R=301]
# bug 755826
RewriteRule ^/zh-CN/$ http://firefox.com.cn/ [L,R=301]
#bug 857246 redirect /products/firefox/start/ to start.mozilla.org
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?products/firefox/start(/?)$ http://start.mozilla.org [L,R=301]
# bug 875052
RewriteCond %{HTTP_USER_AGENT} seamonkey [NC]
RewriteRule ^/start/(.*)$ http://www.seamonkey-project.org/start/ [E=varyua:1,L,R=301]
RewriteRule ^/start/(.*)$ /firefox/ [L,R=301]
#bug 856081 redirect /about/drivers https://wiki.mozilla.org/Firefox/Drivers
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/drivers(\.html|/)?$ https://wiki.mozilla.org/Firefox/Drivers [L,R=301]
# bug 885856
RewriteRule ^/projects/index\.(de|fr|hr|sq)\.html$ /$1/products/ [L,R=301]
# bug 856075
RewriteRule ^/projects/technologies\.html$ https://developer.mozilla.org/docs/Mozilla/Using_Mozilla_code_in_other_projects [L,R=301]
# bug 874526, 877698
RewriteRule ^/projects/security/components(.*)$ http://www-archive.mozilla.org/projects/security/components$1 [L,R=301]
# bug 876889
RewriteRule ^/projects/testopia/?$ https://developer.mozilla.org/docs/Mozilla/Bugzilla/Testopia [L,R=301]
# bug 874525
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?projects/security/pki/nss.*$ https://developer.mozilla.org/docs/NSS [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?projects/security/pki/jss.*$ https://developer.mozilla.org/docs/JSS [L,R=301]
# bug 780672
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/webhero(.*)$ /firefox/ [L,R=301]
# bug 964107
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/video https://www.youtube.com/firefoxchannel [L,R=301]
# bug 948520
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/livebookmarks(.*)$ "https://support.mozilla.org/kb/Live Bookmarks" [L,R=301]
# bug 782333
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/backtoschool(/?)$ https://addons.mozilla.org/firefox/collections/mozilla/back-to-school/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/backtoschool/firstrun(/?)$ /firefox/firstrun/ [L,R=301]
# bug 824126, 837942
RewriteRule ^/ports/qtmozilla(?:/(?:index.html)?)?$ https://wiki.mozilla.org/Qt [L,R=301]
RewriteRule ^/ports/os2/?$ https://wiki.mozilla.org/Ports/os2 [L,R=301]
RewriteCond %{REQUEST_URI} !^/ports/os2/gcc/?
RewriteCond %{REQUEST_URI} !^/ports/os2/selmail/?
RewriteRule ^/ports(.*)$ http://www-archive.mozilla.org/ports$1 [L,R=301]
# bug 832348
# need the RewriteCond to avoid prefetch.php conflicts.
RewriteCond %{THE_REQUEST} ^.+/index\.html\ HTTP
RewriteRule ^(.*)index\.html$ $1 [L,R=301]
## Redirect things to django!
# bug 797192, 892470
RewriteRule ^/(en-US|af|ak|an|ar|ast|bg|bn-IN|br|ca|cs|csb|cy|da|de|el|en-GB|eo|es-AR|es-CL|es-ES|es-MX|et|eu|fa|ff|fi|fr|fy-NL|ga-IE|gd|gl|he|hi-IN|hr|hsb|hu|hy-AM|id|is|it|ja|ka|kk|km|ko|ku|lt|lv|mai|mk|ml|mr|ms|my|nb-NO|nl|nn-NO|nso|oc|pa-IN|pl|pt-BR|pt-PT|rm|ro|ru|sk|sl|son|sq|sr|sv-SE|sw|ta|ta-LK|te|th|tr|uk|ur|vi|wo|xh|zh-CN|zh-TW)/plugincheck(/?)$ /b/$1/plugincheck$2 [PT]
# bug 925551
RewriteRule ^/en-US/plugincheck/more_info.html$ /plugincheck/ [L,R=301]
# bug 835506
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?facebookapps/(.*)?$ /b/$1facebookapps/$2 [PT]
# bug 854561
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?projects/mozilla-based(\.html|/)?$ /$1about/mozilla-based/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/mozilla-based(/?)$ /b/$1about/mozilla-based$2 [PT]
# bug 851727
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?projects/powered-by(\.html|/)?$ /$1about/powered-by/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/powered-by(/?)$ /b/$1about/powered-by$2 [PT]
# bug 837883
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/firefox\.exe$ /$1 [NC,L,R=301]
# bug 821006
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/all(\.html)?$ /$1firefox/all/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/all/$ /b/$1firefox/all/ [PT]
# bug 727561
RewriteRule ^/en-US/firefox/search(?:\.html)?$ /en-US/firefox/ [L,R=301]
# bug 957664
RewriteRule ^/en-US/press/awards(?:\.html)?$ https://blog.mozilla.org/press/awards/ [L,R=301]
# bug 860865
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/all-(?:beta|rc)(?:\.html)?$ /firefox/beta/all/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/all-aurora(?:\.html)?$ /firefox/aurora/all/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/organizations/all(?:\.html)?$ /firefox/organizations/all/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/(aurora|beta)/all(/?)$ /b/$1firefox/$2/all$3 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/organizations(.*)$ /b/$1firefox/organizations$2 [PT]
# bug 803345
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?apps(.*)$ /b/$1apps$2 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?persona(.*)$ /b/$1persona$2 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?b2g(.*)$ /b/$1b2g$2 [PT]
# bug 931042
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?collusion.*$ /$1lightbeam/ [L,R=301]
# bug 882845
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/toolkit/download-to-your-devices(.*)$ /$1firefox/ [L,R=301]
## Home Page
# Has to be this way because of old
# legacy platform url conflicts.
# bug 921564
RewriteRule ^/(ach|af|ak|an|ar|as|ast|az|be|bg|bn-BD|bn-IN|br|bs|ca|cs|csb|cy|da|de|el|en-GB|en-US|en-ZA|eo|es-AR|es-CL|es-ES|es-MX|et|eu|fa|ff|fi|fr|fy-NL|ga-IE|gd|gl|gu-IN|he|hi-IN|hr|hsb|hu|hy-AM|id|is|it|ja|ja-JP-mac|ka|kk|km|kn|ko|ku|lg|lij|lt|lv|mai|mk|ml|mn|mr|ms|my|nb-NO|nl|nn-NO|nso|oc|or|pa-IN|pl|pt-BR|pt-PT|rm|ro|ru|sah|si|sk|sl|son|sq|sr|sv-SE|sw|ta|ta-LK|te|th|tr|uk|ur|vi|wo|xh|zh-CN|zh-TW|zu)(/?)$ /b/$1$2 [PT]
# bug 822260
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/mission.html$ /b/$1about/mission.html [PT]
# bug 889958
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about(/?)?$ /b/$1about$2 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/partnerships(/?)$ /b/$1about/partnerships$2 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/partnerships/distribution(/?)$ /b/$1about/partnerships/distribution$2 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?mission(/?)$ /b/$1mission$2 [PT]
# bug 843789
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/partnerships/contact-bizdev(/?)$ /b/$1about/partnerships/contact-bizdev$2 [PT]
# bug 793754
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?contribute(/?)$ /b/$1contribute$2 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?contribute/page(/?)$ /b/$1contribute/page$2 [PT]
# bug 807155
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?contribute/embed(/?)$ /b/$1contribute/embed$2 [PT]
# bug 787953
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?contribute/event(.*)$ /b/$1contribute/event$2 [PT]
# bug 859564
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?contribute/(student|university)ambassadors(.*)$ /b/$1contribute/$2ambassadors$3 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?projects(/?)$ /b/$1projects$2 [PT]
RewriteRule ^/en-US/firefox/new(/?)$ /b/en-US/firefox/new$1 [PT]
RewriteRule ^/en-US/firefox/fx(/?)$ /b/en-US/firefox/fx$1 [PT]
RewriteRule ^/en-US/firefox/features(/?)$ /b/en-US/firefox/features$1 [PT]
RewriteRule ^/en-US/firefox/customize(/?)$ /b/en-US/firefox/customize$1 [PT]
RewriteRule ^/en-US/firefox/performance(/?)$ /b/en-US/firefox/performance$1 [PT]
RewriteRule ^/en-US/firefox/technology(/?)$ /b/en-US/firefox/technology$1 [PT]
RewriteRule ^/en-US/firefox/security(/?)$ /b/en-US/firefox/security$1 [PT]
RewriteRule ^/en-US/firefox/central(/?)$ /b/en-US/firefox/central$1 [PT]
RewriteRule ^/en-US/firefox/happy(/?)$ /b/en-US/firefox/happy$1 [PT]
RewriteRule ^/en-US/firefox/speed(/?)$ /b/en-US/firefox/speed$1 [PT]
RewriteRule ^/en-US/firefox/geolocation(/?)$ /b/en-US/firefox/geolocation$1 [PT]
RewriteRule ^/en-US/firefox/channel(/?)$ /b/en-US/firefox/channel$1 [PT]
RewriteRule ^/en-US/firefox/releases(/?)$ /b/en-US/firefox/releases$1 [PT]
# Bug 925278
# TODO: Remove when all locales are done.
RewriteRule ^/(af|an|ar|az|be|br|ca|cs|cy|da|de|el|en-GB|en-ZA|eo|es-AR|es-ES|es-CL|es-MX|et|eu|fi|fr|fy-NL|gd|gl|he|hr|hsb|hu|hy-AM|id|is|it|km|ko|ku|lt|mk|ms|nl|pa-IN|pl|pt-BR|ru|sk|sl|sq|sr|sv-SE|tr|uk|xh|zh-CN|zh-TW)/firefox/channel(/?)$ /b/$1/firefox/channel$2 [PT]
# bug 929775
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/update(.*)?$ /$1firefox/new/?utm_source=firefox-browser&utm_medium=firefox-browser&utm_campaign=firefox-update-redirect [L,R=301]
# bug 927442
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/community(/?)$ /$1contribute/ [L,R=301]
# bug 881754, 883127
# TODO: Remove when all locales are done.
RewriteRule ^/(af|an|ar|ast|be|bg|br|ca|cs|csb|cy|da|de|el|en-GB|en-ZA|eo|es-AR|es-CL|es-ES|es-MX|et|eu|fa|fi|fr|fy-NL|ga-IE|gd|gl|he|hi-IN|hr|hsb|hu|hy-AM|id|is|it|ka|kk|km|ko|ku|lij|lt|lv|mk|ml|mr|ms|my|nb-NO|nl|oc|pa-IN|pl|pt-BR|pt-PT|rm|ro|ru|sk|sl|son|sq|sr|sv-SE|ta|te|th|tr|uk|ur|xh|zh-CN|zh-TW)/firefox/new(/?)$ /b/$1/firefox/new$2 [PT]
# bug 957283
RewriteRule ^/(pt-BR)/firefox/speed(/?)$ /b/$1/firefox/speed$2 [PT]
# bug 796952, 915845, 915867
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/unsupported/(.*)$ /b/$1firefox/unsupported/$2 [PT]
# bug 960651
RewriteCond %{REQUEST_URI} !/unsupported
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?(firefox|mobile)/([^/]+)/details(/|/.+\.html)?$ /$1firefox/unsupported/details/ [L,R=301]
# bug 757117
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?webmaker(.*)$ /b/$1webmaker$2 [PT]
# bug 760194
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?dnt(.*)$ /b/$1dnt$2 [PT]
# bug 868182
RewriteCond %{QUERY_STRING} os=firefox-os
# the ? at the end means to remove the QS from the initial request.
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/mobile/faq/?$ /$1firefox/os/faq/? [L,R=301]
# bug 767614 superceeded by bug 957711
RewriteRule ^/en-US/mobile(/?)$ /en-US/firefox/partners$1 [L,R=302]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/mobile/features(/?)$ /b/$1firefox/mobile/features$2 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/mobile/faq(/?)$ /b/$1firefox/mobile/faq$2 [PT]
# bug 961010
RewriteRule ^/en-US/mobile/credits /credits/ [L,R=301]
# bug 876668
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?mobile/customize(?:/.*)?$ /$1firefox/mobile/features/ [L,R=301]
# bug 773739
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?products(/?)$ /b/$1products$2 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox(/(?:\d+\.\d+\.?(?:\d+)?\.?(?:\d+)?(?:[a|b]?)(?:\d*)(?:pre)?(?:\d)?))?/whatsnew(/?)$ /b/$1firefox$2/whatsnew$3 [PT]
# bug 736934, 860865
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?(firefox|mobile)/((?:beta|aurora|organizations)/)?notes(/?)$ /b/$1$2/$3notes$4 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/((?:beta|aurora|organizations)/)?system-requirements(\.html)?$ /$1firefox/$2system-requirements/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/((?:beta|aurora|organizations)/)?system-requirements/$ /b/$1firefox/$2system-requirements/ [PT]
# bug 778752
RewriteRule ^/en-US/firefox/channel/android(/?)$ /b/en-US/firefox/channel/android$1 [PT]
# bug 784737
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/memory(.*)$ /b/$1firefox/memory$2 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?styleguide(.*)$ /b/$1styleguide$2 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/sms(.*)$ /b/$1firefox/sms$2 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?grants(.*)$ /b/$1grants$2 [PT] # bug 793181
# bug 897082
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?contact(.*)$ /b/$1contact$2 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/mozilla-spaces(.*)$ /$1contact/spaces/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/contact(.*)$ /$1contact/spaces/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?contribute/local(/?)$ /$1contact/communities/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?contribute/local/northamerica.html$ /$1contact/communities/north-america/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?contribute/local/europe.html$ /$1contact/communities/europe/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?contribute/local/latinamerica.html$ /$1contact/communities/latin-america/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?contribute/local/africamideast.html$ /$1contact/communities/africa-middle-east/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?contribute/local/asia.html$ /$1contact/communities/asia-south-pacific/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?contribute/local/southpole.html$ /$1contact/communities/antarctica/ [L,R=301]
# bug 875052
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/get-involved /$1contribute/ [L,R=301]
# request to ensure https is present for pluginchecks bug 795291
RewriteCond %{ENV:HTTPS} !on
RewriteRule ^/.*/plugincheck/ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
# bug 878871
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/os(.*)$ /b/$1firefox/os$2 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefoxos(.*)$ /$1firefox/os/ [NE,L,R=301]
# bug 797337
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?contribute/areas.html$ /b/$1contribute/areas.html [PT]
# bug 846362
RewriteRule ^/community/index.(de|fr|hr|sq).html$ /contribute/ [L,R=301]
RewriteRule ^/community/(index.html)?$ /contribute/ [L,R=301]
# bug 798453
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/installer-help(.*)$ /b/$1firefox/installer-help$2 [PT]
# bug 801705
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?gameon(.*)$ /b/$1gameon$2 [PT]
# bug 799767
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?book(.*)$ /b/$1book$2 [PT]
# bug 800461
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/brand(.*)$ /b/$1firefox/brand$2 [PT]
# bug 800649
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?privacy/policies/facebook(.*)$ /b/$1privacy/policies/facebook$2 [PT]
# bug 857179
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?privacy/policies/archive/(.*)$ /b/$1privacy/policies/archive/$2 [PT]
# bug 820212
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?privacy/firefox-os/?$ /$1privacy/policies/firefox-os/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?privacy/policies/firefox-os(.*)$ /b/$1privacy/policies/firefox-os$2 [PT]
# bug 807323
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?foundation/identity-guidelines(.*)$ /b/$1foundation/identity-guidelines$2 [PT]
# bug 809426
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?legal/eula(/?)$ /b/$1legal/eula$2 [PT]
# bug 905802
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?legal/fraud-report(/?)$ /b/$1legal/fraud-report$2 [PT]
# bug 811787
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?foundation/annualreport/2011(.*)$ /b/$1foundation/annualreport/2011$2 [PT]
# bug 928120
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?foundation/annualreport/2012(.*)$ /b/$1foundation/annualreport/2012$2 [PT]
# bug 816249
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?privacy(/?)$ /b/$1privacy$2 [PT]
# bug 959403
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?privacy/you(/?)$ /b/$1privacy/you$2 [PT]
# bug 815731 /ITU/
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?ITU(.*)$ /b/$1ITU$2 [PT]
# bug 821838
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?tabzilla/(.*)$ /b/$1tabzilla/$2 [PT]
# bug 821937
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?m/privacy.html$ /b/$1m/privacy.html [PT]
# bug 683375
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?research(.*)$ /b/$1research$2 [PT]
# bug 822817
RewriteRule ^/telemetry/?$ /b/telemetry/ [PT]
# bug 829091
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/partners(.*)$ /b/$1firefox/partners$2 [PT]
# bug 831810
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?mwc/?$ /$1firefox/partners/?utm_source=mozilla.org&utm_medium=referral&utm_campaign=mwc-redirect [NC,L,R=302]
# bug 957763
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?mwc(/?)$ /b/$1mwc$2 [PT]
# bug 833645
RewriteRule ^/en-US/firefox(/(?:\d+\.\d+\.?(?:\d+)?\.?(?:\d+)?(?:[a|b]?)(?:\d*)(?:pre)?(?:\d)?))?/firstrun(/?)$ /b/en-US/firefox$1/firstrun$2 [PT]
# bug 748503
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?projects/firefox/([^/]+)a[0-9]+/(firstrun|whatsnew)(.*)$ /$1firefox/nightly/firstrun$4 [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/nightly/firstrun(.*)$ /b/$1firefox/nightly/firstrun$2 [PT]
# bug 840814
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?projects/firefox(/(?:\d+\.\d+\.?(?:\d+)?\.?(?:\d+)?(?:[a|b]?)(?:\d*)(?:pre)?(?:\d)?))(/(?:firstrun|whatsnew))(/.*)?$ /$1firefox$2$3$4 [L,R=301]
# bug 845983
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?metrofirefox(/.*)? /$1firefox$2 [L,R=301]
# bug 878926
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefoxflicks/?(.*) https://firefoxflicks.mozilla.org/$1$2 [L,R=301]
# bug 849426
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/history(\.html)?$ /$1about/history/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/history/$ /b/$1about/history/ [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/bookmarks.html$ https://wiki.mozilla.org/Historical_Documents [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/timeline.html$ https://wiki.mozilla.org/Timeline [L,R=301]
# bug 885848
RewriteRule ^/about/index.(.*)?.html$ /contribute/ [L,R=301]
RewriteCond $1 !en-US/
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)about(?:/(?:index.html)?)$ /contribute/ [L,R=301]
# bug 861243 and bug 869489
RewriteRule ^/about/manifesto\.html$ /about/manifesto/ [L,R=301]
RewriteRule ^/about/manifesto\.(.*)\.html$ /$1/about/manifesto/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/manifesto(/?)$ /b/$1about/manifesto$2 [PT]
# bug 856077
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?projects/toolkit(/?)$ https://developer.mozilla.org/docs/Toolkit_API [L,R=301]
# bug 877165
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/connect.*$ / [L,R=301]
# bug 657049
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/accountmanager/?$ /$1persona/ [L,R=301]
# bug 841846
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/nightly(/?)$ https://nightly.mozilla.org [L,R=302]
# bug 748503
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/nightly/firstrun(.*)$ /b/$1firefox/nightly/firstrun$2 [PT]
# bug 860532 - Reidrects for governance pages
RewriteRule ^/about/governance\.html$ /about/governance/ [L,R=301]
RewriteRule ^/about/roles\.html$ /about/governance/roles/ [L,R=301]
RewriteRule ^/about/organizations\.html$ /about/governance/organizations/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/governance(.*)$ /b/$1about/governance$2 [PT]
# bug 790784
# NB: The /foundation/privacy-policy.html redirect must appear before the
# foundation redirects added with bug 724633. Otherwise, the address will first
# be prefixed with a locale, and this redirect will not work.
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?privacy/policies/websites(/?)$ /b/$1privacy/policies/websites$2 [PT]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?privacy-policy(?:\.html)?$ /$1privacy/policies/websites/ [L,R=301]
RewriteRule ^/foundation/privacy-policy\.html$ /privacy/policies/websites/ [L,R=301]
RewriteRule ^/about/policies/privacy-policy\.html$ /privacy/policies/websites/ [L,R=301]
RewriteRule ^/en-US/privacy-policy\.pdf$ https://static.mozilla.com/moco/en-US/pdf/mozilla_privacypolicy.pdf [L,R=301]
# bug 724633 - Porting foundation pages
# Add redirects for the pdfs that were under /foundation/documents/
# that will now be served from static.mozilla.com/foundation/documents/
# (The links within the foundation pages have been updated, but there are
# probably many links to them from other pages and sites that need to keep
# working.)
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?foundation/documents/([^/]+).pdf$ https://static.mozilla.com/foundation/documents/$2.pdf [NC,L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?foundation/donate_form.pdf$ https://static.mozilla.com/foundation/documents/donate_form.pdf [NC,L,R=301]
# openwebfund/ and openwebfund/index.html redirect to another site. Careful because
# there are other pages under openwebfund that still need to be served from Bedrock.
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?foundation/openwebfund/(index.html)?$ https://sendto.mozilla.org/page/contribute/join-mozilla?source=owf_redirect [NC,L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?foundation/donate\.html$ https://sendto.mozilla.org/page/contribute/openwebfund [NC,L,R=301]
# FIXUPs for changing foo/bar.html to foo/bar/
# Redirect foundation/foo.html to foundation/foo/, with a redirect for the nice search engines
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?foundation/(about|careers|licensing|moco|mocosc).html$ /$1foundation/$2/ [NC,L,R=301]
# Redirect foundation/anything/foo.html to foundation/anything/foo/, with a redirect for the nice search engines
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?foundation/((annualreport|documents|feed-icon-guidelines|licensing|openwebfund|trademarks)/.*).html$ /$1foundation/$2/ [NC,L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?foundation/documents/(index|mozilla-200.-financial-faq).html$ /$1foundation/$2/ [NC,L,R=301]
# Add /b to all foundation URLs to serve them from Bedrock.
# (The old foundation pages had no locale in the URL.
# But when the rewritten locale-less URLs hit Bedrock, Bedrock will return
# a redirect with the locale added. So we need to make sure both kinds of
# URL end up in Bedrock.)
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?foundation(/.*)?$ /b/$1foundation$2 [PT]
# bug 724682
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?projects/mathml/demo/texvsmml.html$ https://developer.mozilla.org/docs/Mozilla_MathML_Project/MathML_Torture_Test [L,R=301]
RewriteRule ^/projects/mathml(?:/(?:index.html|demo(?:/(?:index.html)?)?)?)?$ https://developer.mozilla.org/en-US/docs/Mozilla/MathML_Project [L,R=301]
RewriteRule ^/projects/mathml/fonts(?:/(?:index.html)?)?$ https://developer.mozilla.org/Mozilla_MathML_Project/Fonts [L,R=301]
RewriteRule ^/projects/mathml/screenshots(?:/(?:index.html)?)?$ https://developer.mozilla.org/Mozilla_MathML_Project/Screenshots [L,R=301]
# bug 878039
RewriteRule ^/access/architecture.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Accessibility_architecture [L,R=301]
RewriteRule ^/access/at-vendors.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Information_for_Assistive_Technology_Vendors [L,R=301]
RewriteRule ^/access/authors.html$ https://developer.mozilla.org/en-US/docs/Web/Accessibility/Information_for_Web_authors [L,R=301]
RewriteRule ^/access/core-developers.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Accessibility_Information_for_Core_Gecko_Developer [L,R=301]
RewriteRule ^/access/evaluators.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Information_for_Governments_and_Other_Organization [L,R=301]
RewriteRule ^/access/event-flow.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Event_Process_Procedure [L,R=301]
RewriteRule ^/access/external-developers.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Information_for_External_Developers_Dealing_with_A#community [L,R=301]
RewriteRule ^/access/features.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Accessibility_Features_in_Firefox [L,R=301]
RewriteRule ^/access/highlevel.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/CSUN_Firefox_Materials [L,R=301]
RewriteRule ^/access/platform-apis.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Accessibility_API_cross-reference#Accessible_Roles [L,R=301]
RewriteRule ^/access/plugins-work.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Mozilla_Plugin_Accessibility [L,R=301]
RewriteRule ^/access/prefs-and-apis.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Embedding_API_for_Accessibility [L,R=301]
RewriteRule ^/access/resources.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Links_and_Resources [L,R=301]
RewriteRule ^/access/section508.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Mozilla_s_Section_508_Compliance [L,R=301]
RewriteRule ^/access/today.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Software_accessibility_today [L,R=301]
RewriteRule ^/access/toolkit-checklist.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/What_needs_to_be_done_when_building_new_toolkits [L,R=301]
RewriteRule ^/access/ui-developers.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Accessibility_information_for_UI_designers [L,R=301]
RewriteRule ^/access/users.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Information_for_users [L,R=301]
RewriteRule ^/access/w3c-uaag.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/UAAG_evaluation_report [L,R=301]
RewriteRule ^/access/w4a.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/W4A [L,R=301]
RewriteRule ^/access/windows/at-apis.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/Gecko_info_for_Windows_accessibility_vendors [L,R=301]
RewriteRule ^/access/windows/msaa-server.html$ https://developer.mozilla.org/en-US/docs/Web/Accessibility/Implementing_MSAA_server [L,R=301]
RewriteRule ^/access/windows/zoomtext.html$ https://developer.mozilla.org/en-US/docs/Mozilla/Accessibility/ZoomText [L,R=301]
# bug 866190
RewriteRule ^/projects/security/pki/python-nss/$ https://developer.mozilla.org/docs/Python_binding_for_NSS [L,R=301]
# bug 869495
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/os/releasenotes/1.0.1(.*)$ /b/$1firefox/os/releasenotes/1.0.1$2 [PT]
# bug 912101
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/os/releasenotes/1.1(.*)$ /b/$1firefox/os/releasenotes/1.1$2 [PT]
# bug 858315
RewriteRule ^/projects/devpreview/firstrun(?:/(?:index.html)?)?$ /firefox/firstrun/ [L,R=301]
RewriteRule ^/projects/devpreview/(.*)$ http://website-archive.mozilla.org/www.mozilla.org/devpreview_releasenotes/projects/devpreview/$1 [L,R=301]
# bug 947890
RewriteRule ^/en-US/firefox/releases/1\.(.*)$ http://website-archive.mozilla.org/www.mozilla.org/firefox_releasenotes/en-US/firefox/releases/1.$1 [L,R=301]
RewriteRule ^/en-US/firefox/releases/0\.(.*)$ http://website-archive.mozilla.org/www.mozilla.org/firefox_releasenotes/en-US/firefox/releases/0.$1 [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)(firefox|mobile)/(\d)\.(.*)/releasenotes(.*)$ http://website-archive.mozilla.org/www.mozilla.org/firefox_releasenotes/$1$2/$3.$4/releasenotes$5 [L,R=301]
# bug 818323
RewriteRule ^/projects/security/known-vulnerabilities.html$ /security/known-vulnerabilities/ [L,R=301]
RewriteRule ^/projects/security/older-vulnerabilities.html$ /security/known-vulnerabilities/older-vulnerabilities.html [L,R=301]
# bug 926629
RewriteRule ^/en-US/newsletter/about_mobile(?:/(?:index.html)?)?$ /en-US/newsletter/ [L,R=301]
RewriteRule ^/en-US/newsletter/about_mozilla(?:/(?:index.html)?)?$ /en-US/contribute/ [L,R=301]
RewriteRule ^/en-US/newsletter/new(?:/(?:index.html)?)?$ /en-US/newsletter/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?newsletter(.*)$ /b/$1newsletter$2 [PT]
# bug 892716
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox(/)?$ /b/$1firefox$2 [PT]
# bug 818321
RewriteRule ^/projects/security/tld-idn-policy-list.html$ /about/governance/policies/security-group/tld-idn/ [L,R=301]
RewriteRule ^/projects/security/membership-policy.html$ /about/governance/policies/security-group/membership/ [L,R=301]
RewriteRule ^/projects/security/secgrouplist.html$ /about/governance/policies/security-group/ [L,R=301]
RewriteRule ^/projects/security/security-bugs-policy.html$ /about/governance/policies/security-group/bugs/ [L,R=301]
# bug 818316
RewriteRule ^/projects/security/certs(?:/(?:index.html)?)?$ /about/governance/policies/security-group/certs/ [L,R=301]
RewriteRule ^/projects/security/certs/included(?:/(?:index.html)?)?$ /about/governance/policies/security-group/certs/included/ [L,R=301]
RewriteRule ^/projects/security/certs/pending(?:/(?:index.html)?)?$ /about/governance/policies/security-group/certs/pending/ [L,R=301]
RewriteRule ^/projects/security/certs/policy(?:/(?:index.html)?)?$ /about/governance/policies/security-group/certs/policy/ [L,R=301]
RewriteRule ^/projects/security/certs/policy/EnforcementPolicy.html /about/governance/policies/security-group/certs/policy/enforcement/ [L,R=301]
RewriteRule ^/projects/security/certs/policy/MaintenancePolicy.html /about/governance/policies/security-group/certs/policy/maintenance/ [L,R=301]
RewriteRule ^/projects/security/certs/policy/InclusionPolicy.html /about/governance/policies/security-group/certs/policy/inclusion/ [L,R=301]
# bug 903089
RewriteRule ^/robots.txt$ /b/robots.txt [PT]
# bug 933311
RewriteRule ^/humans.txt$ /media/humans.txt [L,PT]
#bug 887426
RewriteRule ^/about/policies(/?)$ /about/governance/policies/ [L,R=301]
RewriteRule ^/about/policies/participation.html$ /en-US/about/governance/policies/participation/ [L,R=301]
RewriteRule ^/about/policies/policies.html$ /en-US/about/governance/policies/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/governance(/.*)?$ /b/en-US/about/governance$1 [PT]
# bug 882923
RewriteRule ^/en-US/opt-out.html$ /privacy/policies/websites/#opt-out [NE,L,R=301]
# bug 884933
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/mobile/platforms(/?)$ https://support.mozilla.org/kb/will-firefox-work-my-mobile-device [L,R=301]
# bug 876581
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/phishing-protection(/?)$ https://support.mozilla.org/kb/how-does-phishing-and-malware-protection-work [L,R=301]
# bug 949562
RewriteRule ^/en-US/mobile/home/1\.0/releasenotes(?:/(?:index.html)?)?$ http://website-archive.mozilla.org/www.mozilla.org/firefox_home/en-US/mobile/home/1.0/releasenotes/ [L,R=301]
RewriteRule ^/en-US/mobile/home/1\.0\.2/releasenotes(?:/(?:index.html)?)?$ http://website-archive.mozilla.org/www.mozilla.org/firefox_home/en-US/mobile/home/1.0.2/releasenotes/ [L,R=301]
RewriteRule ^/en-US/mobile/home/faq(?:/(?:index.html)?)?$ http://website-archive.mozilla.org/www.mozilla.org/firefox_home/en-US/mobile/home/faq/ [L,R=301]
# bug 960064
RewriteRule ^/en-US/firefox/(vpat-[\.1-5]+)(?:\.html)?$ http://website-archive.mozilla.org/www.mozilla.org/firefox_vpat/firefox-$1.html [L,R=301]
RewriteRule ^/en-US/firefox/vpat(?:\.html)? http://website-archive.mozilla.org/www.mozilla.org/firefox_vpat/firefox-vpat-3.html [L,R=301]
# bug 924687
RewriteRule ^/en-US/opportunities(?:/(?:index.html)?)?$ https://careers.mozilla.org/ [L,R=301]
# bug 926629
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?lightbeam(/?.*)$ /b/$1lightbeam$2 [PT]
# bug 876233
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?about/participate/?$ /$1contribute/ [L,R=301]
# bug 675031
RewriteRule ^/projects/fennec/(.*) http://website-archive.mozilla.org/www.mozilla.org/fennec_releasenotes/projects/fennec/$1 [L,R=301]
# bug 957637
RewriteRule ^/en-US/sopa/ https://blog.mozilla.org/blog/2012/01/19/firefox-users-engage-congress-sopa-strike-stats/ [L,R=301]
# Bug 608370, 957664
RewriteRule ^/en-US/press/kit(?:.*\.html|s/?)$ https://blog.mozilla.org/press/kits/ [R=301,L]
# bug 877198
RewriteRule ^/en-US/press/news.html http://blog.mozilla.org/press/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2003-10-15.html http://blog.mozilla.org/press/2003/10/mozilla-foundation-launches-new-web-browser-and-end-user-services/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-02-09.html http://blog.mozilla.org/press/2004/02/new-round-of-releases-extends-mozilla-projects-standards-based-open-source-offerings/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-02-17.html http://blog.mozilla.org/press/2004/02/mozilla-gains-stronghold-in-europe/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-02-26.html https://blog.mozilla.org/press/2004/02/mozilla-foundation-rallies-supporters-to-take-back-the-web/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-05-03.html http://blog.mozilla.org/press/2004/05/mozilla-foundation-releases-thunderbird-0-6/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-06-15.html http://blog.mozilla.org/press/2004/06/mozilla-reloads-firefox/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-06-16.html http://blog.mozilla.org/press/2004/06/mozilla-foundation-releases-thunderbird-0-7/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-06-30.html http://blog.mozilla.org/press/2013/11/mozilla-foundation-announces-more-open-scriptable-plugins/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-08-02.html http://blog.mozilla.org/press/2004/08/mozilla-foundation-announces-security-bug-bounty-program/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-08-10.html http://blog.mozilla.org/press/2004/08/mozilla-foundation-announces-xforms-development-project/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-08-18.html http://blog.mozilla.org/press/2004/08/mozilla-affiliate-in-japan-kicks-off/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-09-14-01.html http://blog.mozilla.org/press/2004/09/mozilla-foundation-announces-first-payments-of-security-bug-bounty-program-further-strengthens-browser-security/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-09-14-02.html http://blog.mozilla.org/press/2013/11/firefox-preview-release-and-thunderbird-0-8-released/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-09-20.html http://blog.mozilla.org/press/2004/09/mozilla-firefox-preview-release-hits-one-million-downloads-in-first-four-days-of-availability/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-10-01-02.html http://blog.mozilla.org/press/2004/10/important-security-update-for-firefox-available/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-11-09.html http://blog.mozilla.org/press/2004/11/mozilla-foundation-releases-the-highly-anticipated-mozilla-firefox-1-0-web-browser/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-11-22.html http://blog.mozilla.org/press/2004/11/important-update-to-german-language-version-of-firefox-1-0/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-12-15.html http://blog.mozilla.org/press/2004/12/mozilla-foundation-places-two-page-advocacy-ad-in-the-new-york-times/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2004-12-7.html http://blog.mozilla.org/press/2004/12/mozilla-thunderbird-1-0-email-client-has-landed/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-01-07.html http://blog.mozilla.org/press/2005/01/mozilla-firefox-and-thunderbird-to-support-new-open-standard-platform-for-usb-drives/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-02-02.html http://blog.mozilla.org/press/2005/02/mozilla-foundation-announces-beta-release-of-xforms-1-0-recommendation/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-02-16.html http://blog.mozilla.org/press/2005/01/mozilla-firefox-and-thunderbird-to-support-new-open-standard-platform-for-usb-drives/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-02-24.html http://blog.mozilla.org/press/2005/02/mozilla-foundation-announces-update-to-firefox/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-03-04.html http://blog.mozilla.org/press/2005/03/mozilla-foundation-expands-with-launch-of-mozilla-china/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-03-23.html http://blog.mozilla.org/press/2005/03/mozilla-foundation-releases-security-update-to-firefox/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-03-28.html http://blog.mozilla.org/press/2005/03/mozilla-foundation-awards-bug-bounties/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-05-13.html http://blog.mozilla.org/press/2005/05/mozilla-foundation-co-hosts-europes-leading-xml-and-web-developer-conference/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-07-28.html http://blog.mozilla.org/press/2005/07/mozilla-headlines-two-key-open-source-development-conferences-in-august/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-08-03.html http://blog.mozilla.org/press/2005/08/mozilla-foundation-forms-new-organization-to-further-the-creation-of-free-open-source-internet-software-including-the-award-winning-mozilla-firefox-browser/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-10-03.html http://blog.mozilla.org/press/2005/10/mozilla-launches-beta-of-comprehensive-online-developer-center/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-10-19.html http://blog.mozilla.org/press/2005/10/firefox-surpasses-100-million-downloads/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-11-29.html http://blog.mozilla.org/press/2005/11/mozilla-introduces-firefox-1-5-and-ups-the-ante-in-web-browsing/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-11-3.html http://blog.mozilla.org/press/2005/11/mozilla-kicks-off-extend-firefox-competition/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-11-30.html http://blog.mozilla.org/press/2005/11/firefox-1-5-adds-answers-com-for-quick-reference/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-12-2.html http://blog.mozilla.org/press/2005/12/mozilla-launches-firefox-flicks-campaign/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2005-12-22.html http://blog.mozilla.org/press/2005/12/mozilla-launches-firefox-flicks-ad-contest/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-01-12.html http://blog.mozilla.org/press/2006/01/mozilla-releases-thunderbird-1-5-email-client/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-01-24.html http://blog.mozilla.org/press/2006/01/firefox-1-5-adoption-rising-as-browser-garners-acclaim/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-01-25.html http://blog.mozilla.org/press/2006/01/indie-film-all-stars-foin-firefox-flicks-crew/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-02-03.html http://blog.mozilla.org/press/2006/02/mozilla-releases-preview-of-application-framework-for-development-of-cross-platform-internet-client-applications/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-03-02.html http://blog.mozilla.org/press/2006/03/mozilla-announces-winners-of-extend-firefox-competition/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-04-12.html http://blog.mozilla.org/press/2006/04/mozilla-showcases-first-round-of-community-produced-firefox-flicks-videos/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-04-18.html http://blog.mozilla.org/press/2006/04/mozilla-receives-over-280-community-produced-videos-for-firefox-flicks/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-04-27.html http://blog.mozilla.org/press/2006/04/firefox-flicks-video-contest-winners-announced/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-06-14.html http://blog.mozilla.org/press/2006/06/mozilla-feeds-soccer-fans-passion-with-new-firefox-add-on/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-10-11.html http://blog.mozilla.org/press/2006/10/qualcomm-launches-project-in-collaboration-with-mozilla-foundation-to-develop-open-source-version-of-eudora-email-program/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-10-24-02.html http://blog.mozilla.org/press/2006/10/firefox-moving-the-internet-forward/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-10-24.html http://blog.mozilla.org/press/2006/10/mozilla-releases-major-update-to-firefox-and-raises-the-bar-for-online-experience/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-11-07.html http://blog.mozilla.org/press/2006/11/adobe-and-mozilla-foundation-to-open-source-flash-player-scripting-engine/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-12-04.html http://blog.mozilla.org/press/2006/12/the-world-economic-forum-announces-technology-pioneers-2007-mozilla-selected/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2006-12-11.html http://blog.mozilla.org/press/2006/12/mozilla-firefox-headed-for-primetime/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2007-02-07.html http://blog.mozilla.org/press/2007/02/kodak-and-mozilla-join-forces-to-make-sharing-photos-even-easier/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2007-03-27.html http://blog.mozilla.org/press/2007/03/mozilla-launches-new-firefox-add-ons-web-site/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2007-03-28.html http://blog.mozilla.org/press/2007/03/mozilla-and-ebay-working-together-to-make-the-auction-experience-easier-for-firefox-users-in-france-germany-and-the-uk/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2007-04-19.html http://blog.mozilla.org/press/2007/04/mozilla-thunderbird-2-soars-to-new-heights/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2007-05-16.html http://blog.mozilla.org/press/2007/05/united-nations-agency-awards-mozilla-world-information-society-award/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2007-07-04.html http://blog.mozilla.org/press/2007/07/mozilla-and-ebay-launch-firefox-companion-for-ebay-users/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2007-08-10.html http://blog.mozilla.org/press/2007/08/mozilla-to-host-24-hour-worldwide-community-event/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2007-08-28.html http://blog.mozilla.org/press/2007/08/mozilla-welcomes-students-back-to-school-with-firefox-campus-edition/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2007-09-17-faq.html http://blog.mozilla.org/press/2007/09/mozilla-launches-internet-mail-and-communications-initiative/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2007-09-17.html http://blog.mozilla.org/press/2007/09/mozilla-launches-internet-mail-and-communications-initiative/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2008-01-07-faq.html http://blog.mozilla.org/press/2008/01/mozilla-appoints-john-lilly-as-chief-executive-officer/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2008-01-07.html http://blog.mozilla.org/press/2008/01/mozilla-appoints-john-lilly-as-chief-executive-officer/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2008-02-19-faq.html http://blog.mozilla.org/press/2008/02/mozilla-messaging-starts-up-operations/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2008-02-19.html http://blog.mozilla.org/press/2008/02/mozilla-messaging-starts-up-operations/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2008-05-28.html http://blog.mozilla.org/press/2008/05/mozilla-aims-to-set-guinness-world-record-on-firefox-3-download-day/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2008-06-17-faq.html http://blog.mozilla.org/press/2008/06/mozilla-releases-firefox-3-and-redefines-the-web-experience/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2008-06-17.html http://blog.mozilla.org/press/2008/06/mozilla-releases-firefox-3-and-redefines-the-web-experience/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2008-07-02.html http://blog.mozilla.org/press/2008/07/mozilla-sets-new-guinness-world-record-with-firefox-3-downloads/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2008-11-18.html http://blog.mozilla.org/press/2008/11/mozilla-launches-fashion-your-firefox-and-makes-it-easy-to-customize-the-browsing-experience/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2008-12-03.html http://blog.mozilla.org/press/2008/12/mozilla-and-zazzle-announce-strategic-relationship-for-apparel-on-demand/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2009-03-31.html http://blog.mozilla.org/press/2009/03/mozilla-adds-style-and-star-power-to-firefox-with-new-personas/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2009-06-30-faq.html http://blog.mozilla.org/press/2009/04/mozilla-advances-the-web-with-firefox-3-5/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-2009-06-30.html http://blog.mozilla.org/press/2009/04/mozilla-advances-the-web-with-firefox-3-5/ [L,R=301]
RewriteRule ^/en-US/press/mozilla-foundation.html http://blog.mozilla.org/press/2003/07/mozilla-org-announces-launch-of-the-mozilla-foundation-to-lead-open-source-browser-efforts/ [L,R=301]
RewriteRule ^/en-US/press/mozilla1.0.html http://blog.mozilla.org/press/2002/06/mozilla-org-launches-mozilla-1-0/ [L,R=301]
RewriteRule ^/en-US/press/open-source-security.html http://blog.mozilla.org/press/2000/01/open-source-development-of-security-products-possible-worldwide-enhancing-security-and-privacy-for-e-commerce-and-communication/ [L,R=301]
# bug 868169
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?mobile/android-download\.html https://play.google.com/store/apps/details?id=org.mozilla.firefox [QSA,L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?mobile/android-download-beta\.html https://play.google.com/store/apps/details?id=org.mozilla.firefox_beta [QSA,L,R=301]
# bug 723267
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?projects/calendar(/?)$ /b/$1projects/calendar$2 [PT]
# bug 885799, 952429
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?projects/calendar/holidays.html$ /$1projects/calendar/holidays/ [L,R=301]
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?projects/calendar/holidays(/?)$ /b/$1projects/calendar/holidays$2 [PT]
# So that current subscriptions will continue to work
RewriteRule ^/projects/calendar/caldata/(.*)$ /media/caldata/$1 [PT]
# Bug 981063, catch all for old calendar urls.
RewriteRule ^/projects/calendar/.+ /projects/calendar/ [L,R=301]
# bug 947890
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/latest/releasenotes(/?)$ /b/$1firefox/latest/releasenotes$2 [PT]
# bug 962307
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?gigabit(.*)$ /b/$1gigabit$2 [PT]
# bug 940555
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?press/speakerrequest(/?)$ /b/$1press/speakerrequest$2 [PT]
# bug 971244
RewriteRule ^/firefox/its-a-trap.html$ http://www.itisatrap.org/firefox/its-a-trap.html [L,R=301]
RewriteRule ^/firefox/its-an-attack.html$ http://www.itisatrap.org/firefox/its-an-attack.html [L,R=301]
# bug 979217
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox(/(?:\d+\.\d+\.?(?:\d+)?\.?(?:\d+)?(?:[a|b]?)(?:\d*)(?:pre)?(?:\d)?))?/tour(/?)$ /b/$1firefox$2/tour$3 [PT]
# bug 979496
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox(/(?:\d+\.\d+\.?(?:\d+)?\.?(?:\d+)?(?:[a|b]?)(?:\d*)(?:pre)?(?:\d)?))?/whatsnew/b(/?)$ /b/$1firefox$2/whatsnew/b$3 [PT]