blob: c70084c4205c8a6ebbe61bf4f3001e255de0596b [file] [log] [blame]
Dirk Dougherty26231572013-01-28 20:34:17 -08001# Redirects file.
2# This file contains the list of rewrite rules that are applied when serving
3# pages. Add "pattern: True" to use python regex in to or from.
4#
5# WATCH OUT -- FROM LINE HAS TO START WITH A HYPHEN
6
7redirects:
8- from: ^/sdk/android-(.*$)
9 to: /about/versions/android-\1
10 pattern: True
11
Scott Main1cd65b32013-05-06 16:51:39 -070012- from: /about/versions/index.html
13 to: /about/index.html
14
15- from: /about/versions/api-levels.html
16 to: /guide/topics/manifest/uses-sdk-element.html#ApiLevels
17
Dirk Dougherty26231572013-01-28 20:34:17 -080018- from: /sdk/adding-components.html
19 to: /sdk/exploring.html
20
21- from: /sdk/compatibility-library.html
22 to: /tools/extras/support-library.html
23
24- from: /sdk/eclipse-adt.html
25 to: /tools/sdk/eclipse-adt.html
26
27- from: /sdk/installing.html
28 to: /sdk/installing/index.html
29
30- from: /sdk/installing/next.html
31 to: /training/basics/firstapp/index.html
32
Scott Main32bd5492013-04-12 11:40:38 -070033- from: /sdk/ndk/overview.html
34 to: /tools/sdk/ndk/index.html
35
Dirk Dougherty26231572013-01-28 20:34:17 -080036- from: /sdk/ndk/...
37 to: /tools/sdk/ndk/...
38
39- from: /sdk/oem-usb.html
40 to: /tools/extras/oem-usb.html
41
42- from: /sdk/tools-notes.html
43 to: /tools/sdk/tools-notes.html
44
45- from: /sdk/requirements.html
46 to: /sdk/index.html
47
48# ------------------- GUIDE -------------------
49
50- from: /guide/market/...
51 to: /google/play/...
52
53- from: /guide/google/gcm/client-javadoc/...
54 to: /reference/com/google/android/gcm/package-summary.html
55
56- from: /guide/google/gcm/server-javadoc/...
57 to: /reference/com/google/android/gcm/server/package-summary.html
58
59- from: /guide/google/play/services.html
60 to: /google/play-services/index.html
61
62- from: /guide/google/...
63 to: /google/...
64
65- from: /guide/publishing/licensing.html
66 to: /google/play/licensing/index.html
67
68- from: /google/play/billing/billing_about.html
69 to: /google/play/billing/index.html
70
71- from: /guide/developing/tools/...
72 to: /tools/help/...
73
74- from: /guide/developing/...
75 to: /tools/...
76
77- from: /tools/aidl.html
78 to: /guide/components/aidl.html
79
80- from: /guide/publishing/publishing.html
81 to: /distribute/googleplay/publish/preparing.html
82
83- from: /guide/publishing/...
84 to: /tools/publishing/...
85
86- from: /guide/topics/fundamentals.html
87 to: /guide/components/fundamentals.html
88
89- from: /guide/topics/intents/intents-filters.html
90 to: /guide/components/intents-filters.html
91
92- from: /guide/topics/fundamentals/...
93 to: /guide/components/...
94
95- from: /guide/topics/clipboard/copy-paste.html
96 to: /guide/topics/text/copy-paste.html
97
98- from: /guide/topics/ui/notifiers/index.html
99 to: /guide/topics/ui/notifiers/notifications.html
100
101- from: /guide/topics/wireless/...
102 to: /guide/topics/connectivity/...
103
104- from: /guide/topics/drawing/...
105 to: /guide/topics/graphics/opengl.html
106
107- from: /guide/topics/connectivity/usb/adk.html
108 to: /tools/adk/index.html
109
110- from: /tools/adk/aoa.html
111 to: http://source.android.com/tech/accessories/aoap/aoa.html
112
113- from: /tools/adk/aoa2.html
114 to: http://source.android.com/tech/accessories/aoap/aoa2.html
115
116- from: /guide/topics/usb/...
117 to: /guide/topics/connectivity/usb/...
118
119- from: /guide/appendix/api-levels.html
120 to: /guide/topics/manifest/uses-sdk-element.html#ApiLevels
121
122- from: /guide/appendix/install-location.html
123 to: /guide/topics/data/install-location.html
124
Scott Main21fe7192013-04-11 19:14:13 -0700125- from: /guide/basics/...
Dirk Dougherty26231572013-01-28 20:34:17 -0800126 to: /about/index.html
127
128- from: /guide/topics/security/security.html
129 to: /training/articles/security-tips.html
Scott Main21fe7192013-04-11 19:14:13 -0700130
131- from: /guide/topics/security/index.html
132 to: /training/articles/security-tips.html
Dirk Dougherty26231572013-01-28 20:34:17 -0800133
134- from: /guide/appendix/market-filters.html
135 to: /google/play/filters.html
136
137- from: /guide/topics/testing/...
138 to: /tools/testing/...
139
140- from: /guide/topics/graphics/animation.html
141 to: /guide/topics/graphics/overview.html
142
143- from: /guide/topics/graphics/renderscript.html
144 to: /guide/topics/renderscript/index.html
145
146- from: /guide/topics/graphics/renderscript/
147 to: /guide/topics/renderscript/index.html
148
149- from: /guide/topics/location/obtaining-user-location.html
150 to: /guide/topics/location/strategies.html
151
152- from: /guide/topics/nfc/...
153 to: /guide/topics/connectivity/nfc/...
154
155- from: /guide/topics/wireless/...
156 to: /guide/topics/connectivity/...
157
158- from: /guide/topics/network/...
159 to: /guide/topics/connectivity/...
160
161- from: /resources/articles/creating-input-method.html
162 to: /guide/topics/text/creating-input-method.html
163
164- from: /resources/articles/spell-checker-framework.html
165 to: /guide/topics/text/spell-checker-framework.html
166
167- from: /resources/tutorials/notepad/...
168 to: /training/notepad/...
169
170- from: /resources/faq/...
171 to: /guide/faq/...
172
173- from: /resources/tutorials/hello-world.html
174 to: /training/basics/firstapp/index.html
175
176# add the rest of the tutorials here
177
178- from: /guide/practices/design/...
179 to: /guide/practices/...
180
181- from: /guide/practices/accessibility.html
182 to: /guide/topics/ui/accessibility/index.html
183
184# move best practices to training
185
186- from: /guide/practices/app-design/performance.html
187 to: /training/articles/perf-tips.html
188
189- from: /guide/practices/performance.html
190 to: /training/articles/perf-tips.html
191
192- from: /guide/practices/app-design/responsiveness.html
193 to: /training/articles/perf-anr.html
194
195- from: /guide/practices/responsiveness.html
196 to: /training/articles/perf-anr.html
197
198- from: /guide/practices/security.html
199 to: /training/articles/security-tips.html
200
201- from: /guide/practices/jni.html
202 to: /training/articles/perf-jni.html
203
204- from: /guide/tutorials/...
205 to: /resources/tutorials/...
206
207# ------------------- RESOURCES -------------------
208
209- from: /resources/dashboard/...
210 to: /about/dashboards/index.html
211
212- from: /resources/community-groups.html
213 to: /support.html
214
215- from: /resources/tutorials/views/hello-linearlayout.html
216 to: /guide/topics/ui/layout/linear.html
217
218- from: /resources/tutorials/views/hello-relativelayout.html
219 to: /guide/topics/ui/layout/relative.html
220
221- from: /resources/tutorials/views/hello-listview.html
222 to: /guide/topics/ui/layout/listview.html
223
224- from: /resources/tutorials/views/hello-gridview.html
225 to: /guide/topics/ui/layout/gridview.html
226
227- from: /resources/tutorials/views/hello-webview.html
228 to: /guide/webapps/webview.html
229
230- from: /resources/tutorials/views/hello-formstuff.html
231 to: /guide/topics/ui/controls.html
232
233- from: /resources/tutorials/views/hello-datepicker.html
234 to: /guide/topics/ui/controls/pickers.html
235
236- from: /resources/tutorials/views/hello-timepicker.html
237 to: /guide/topics/ui/controls/pickers.html
238
239- from: /resources/tutorials/views/hello-autocomplete.html
240 to: /guide/topics/ui/controls/text.html
241
242- from: /resources/tutorials/views/hello-spinner.html
243 to: /guide/topics/ui/controls/spinner.html
244
245- from: /resources/tutorials/opengl/opengl-es10.html
246 to: /training/graphics/opengl/index.html
247
248- from: /resources/tutorials/opengl/opengl-es20.html
249 to: /training/graphics/opengl/index.html
250
251- from: /resources/tutorials/views/hello-mapview.html
252 to: https://developers.google.com/maps/documentation/android/hello-mapview
253
254- from: /resources/tutorials/views/...
255 to: /guide/topics/ui/declaring-layout.html#CommonLayouts
256
257- from: /guide/topics/ui/layout-objects.html
258 to: /guide/topics/ui/declaring-layout.html#CommonLayouts
259
260- from: /resources/tutorials/localization/...
261 to: /training/basics/supporting-devices/languages.html
262
263- from: /resources/samples/...
264 to: /tools/samples/index.html
265
266- from: /guide/
267 to: /guide/components/index.html
268 # comment: this redirects guide/ and guide/index.html only
269
270# ------------------- TRAINING -------------------
271
272- from: /training/cloudsync/aesync.html
273 to: /google/gcm/index.html
274
Dirk Doughertyc3a7ea42013-05-03 13:11:51 -0700275- from: /training/basics/location/...
276 to: /training/location/...
277
Dirk Dougherty26231572013-01-28 20:34:17 -0800278# -------------------- MISC ----------------------
279
280- from: /shareables/...
281 to: http://commondatastorage.googleapis.com/androiddevelopers/shareables/...
282
283- from: /downloads/...
284 to: http://commondatastorage.googleapis.com/androiddevelopers/...
285
286- from: /search.html
287 to: /index.html
288
289- from: /videos/index.html
290 to: /develop/index.html
291
292- from: /live/index.html
293 to: https://developers.google.com/live/
294
295# ---------- PLATFORM VERSIONS ----------------
296
297- from: /4.2
298 to: /about/versions/android-4.2.html
299
300- from: /4.1
301 to: /about/versions/android-4.1.html
302
303- from: /4.0
304 to: /about/versions/android-4.0.html
305
306- from: /(j|jb|jellybean)/?$
307 to: /about/versions/jelly-bean.html
308 pattern: True
309
310- from: /(i|ics|icecreamsandwich)/?$
311 to: /about/versions/android-4.0-highlights.html
312 pattern: True
313
314- from: /(h|hc|honeycomb)/?$
315 to: /about/versions/android-3.0-highlights.html
316 pattern: True
317
318- from: /(g|gb|gingerbread)/?$
319 to: /about/versions/android-2.3-highlights.html
320 pattern: True
321
322# ---------- MISC -----------------
323
324- from: /\+/?$
325 to: https://plus.google.com/108967384991768947849/posts
326 pattern: True
327
328- from: /blog
329 to: http://android-developers.blogspot.com
330
331- from: /stats
332 to: /about/dashboards/index.html
333
334- from: /youtube
335 to: http://www.youtube.com/user/androiddevelopers
336
337- from: /playbadge
338 to: http://developer.android.com/distribute/googleplay/promote/badges.html
339
340- from: /deviceart
341 to: http://developer.android.com/distribute/promote/device-art.html
Dirk Dougherty206a4072013-05-15 04:28:25 -0700342
343- from: /edu
344 to: /distribute/googleplay/edu/index.html
345
346- from: /edu/signup
347 to: https://services.google.com/fb/forms/playedu