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