Simplify redirect rules a bunch
Sebastian Hahn

Sebastian Hahn commited on 2016-11-23 01:12:52
Zeige 1 geänderte Dateien mit 6 Einfügungen und 48 Löschungen.

... ...
@@ -70,52 +70,10 @@ RewriteRule ^js/$ / [R=301,L]
70 70
 
71 71
 # Donation campagin
72 72
 # 2016
73
-RewriteRule ^donate/donate-homepage-en(.*) https://donate.torproject.org [R=302,L]
74
-RewriteRule ^donate/donate-twitter-en(.*) https://donate.torproject.org [R=302,L]
75
-RewriteRule ^donate/donate-share-en(.*) https://donate.torproject.org [R=302,L]
76
-RewriteRule ^donate/donate-fb-en(.*) https://donate.torproject.org [R=302,L]
77
-RewriteRule ^donate/donate-blog-en(.*) https://donate.torproject.org [R=302,L]
78
-RewriteRule ^donate/donate-email-en(.*) https://donate.torproject.org [R=302,L]
79
-RewriteRule ^donate/donate-tbb-de(.*) https://donate.torproject.org [R=302,L]
80
-RewriteRule ^donate/donate-tbb-en(.*) https://donate.torproject.org [R=302,L]
81
-RewriteRule ^donate/donate-tbb-es(.*) https://donate.torproject.org [R=302,L]
82
-RewriteRule ^donate/donate-tbb-fa(.*) https://donate.torproject.org [R=302,L]
83
-RewriteRule ^donate/donate-tbb-fr(.*) https://donate.torproject.org [R=302,L]
84
-RewriteRule ^donate/donate-tbb-it(.*) https://donate.torproject.org [R=302,L]
85
-RewriteRule ^donate/donate-tbb-nl(.*) https://donate.torproject.org [R=302,L]
86
-RewriteRule ^donate/donate-tbb-pt(.*) https://donate.torproject.org [R=302,L]
87
-RewriteRule ^donate/donate-tbb-ru(.*) https://donate.torproject.org [R=302,L]
88
-RewriteRule ^donate/donate-tbb-tr(.*) https://donate.torproject.org [R=302,L]
89
-RewriteRule ^donate/donate-tbb-vi(.*) https://donate.torproject.org [R=302,L]
90
-RewriteRule ^donate/donate-tbb-zh(.*) https://donate.torproject.org [R=302,L]
91
-RewriteRule ^donate/donate-button(.*) https://donate.torproject.org [R=302,L]
92
-RewriteRule ^donate/donate-download(.*) https://donate.torproject.org [R=302,L]
93
-RewriteRule ^donate/donate-foot(.*) https://donate.torproject.org [R=302,L]
94
-RewriteRule ^donate/donate https://donate.torproject.org [R=302,L]
95
-RewriteRule ^donate/donate.html.en https://donate.torproject.org [R=302,L]
96
-
97
-# 2015
98
-RewriteRule ^donate/donate-twitter(.*) /donate/donate$1 [R=302,L]
99
-RewriteRule ^donate/donate-tbb(.*) /donate/donate$1 [R=302,L]
100
-RewriteRule ^donate/donate-banner(.*) /donate/donate$1 [R=302,L]
101
-RewriteRule ^donate/giving-tue-blog(.*) /donate/donate$1 [R=302,L]
102
-RewriteRule ^donate/donate-roger(.*) /donate/donate$1 [R=302,L]
103
-RewriteRule ^donate/donate-george-torwell(.*) /donate/donate$1 [R=302,L]
104
-RewriteRule ^donate/donate-blog-molly(.*) /donate/donate$1 [R=302,L]
105
-RewriteRule ^donate/donate-blog-rabbirob(.*) /donate/donate$1 [R=302,L]
106
-RewriteRule ^donate/donate-blog-cory(.*) /donate/donate$1 [R=302,L]
107
-RewriteRule ^donate/donate-hpbanner(.*) /donate/donate$1 [R=302,L]
108
-RewriteRule ^donate/donate-blog-benw(.*) /donate/donate$1 [R=302,L]
109
-RewriteRule ^donate/donate-blog-ellsberg(.*) /donate/donate$1 [R=302,L]
110
-RewriteRule ^donate/donate-blog-alison(.*) /donate/donate$1 [R=302,L]
111
-RewriteRule ^donate/donate-snowden(.*) /donate/donate$1 [R=302,L]
112
-RewriteRule ^donate/donate-appelbaum(.*) /donate/donate$1 [R=302,L]
113
-RewriteRule ^donate/donate-chaos(.*) /donate/donate$1 [R=302,L]
114
-RewriteRule ^donate/donate-blog-nanni(.*) /donate/donate$1 [R=302,L]
115
-RewriteRule ^donate/donate-blog-landau(.*) /donate/donate$1 [R=302,L]
116
-#keep prefixes of other entries down here...
117
-RewriteRule ^donate/donate-hp(.*) /donate/donate$1 [R=302,L]
118
-
119
-# yuck, https://twitter.com/torproject/status/677928074630049793
120
-RewriteRule ^Donate/Donate-Twitter(.*) /donate/donate$1 [R=302,L]
73
+# Special-case the donate-options page so it doesn't get redirected
74
+RewriteRule ^donate/donate-options(.*) /donate/donate-options$1 [L]
75
+RewriteRule ^donate/donate(.*) https://donate.torproject.org [R=302,L]
76
+RewriteRule ^donate/donor-faq(.*) https://donate.torproject.org/donor-faq.html [R=302,L]
77
+RewriteRule ^donate/donor-privacy-policy(.*) https://donate.torproject.org/donor-privacy-policy.html [R=302,L]
78
+
121 79
 
122 80