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