• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Redirect file.
2# This file contains the list of rewrite rules that are applied when serving
3# pages.
4#
5# Each redirect has four parts:
6#
7# - src: The path to redirect. This is a regex rule prefixed with an implied
8#   '^'. Unless you're doing something advanced, your path should start with
9#   '/' character.
10#
11# - dst: The path to redirect to. If the path begins with a slash,
12#   it is considered a relative redirect. Otherwise, it is an absolute
13#   redirct (and should probably begin with http: or http://). You may use
14#   capturing groups to preserve part of the source path. To referece a
15#   capturing group, use \N, where N is the (1-based) index of desired group.
16#
17# - type: Either 'permanent' or 'temporary', depending on whether you want an
18#   HTTP 301 or HTTP 302 redirect, respectiviely. See RFC 2616 for the
19#   difference between these:
20#
21#       http://tools.ietf.org/html/rfc2616
22#
23#   If you don't specify a type, 'permanent' will be used by default. Note that
24#   this is different from the Apache convention (which uses 'temporary' by
25#   default.)
26#
27# - comment: Currently ignored by the computer, but useful for humans.
28#
29# Example:
30#
31# redirects:
32# - src: /foo
33#   dst: /bar
34#   # Redirect /foo to /bar. This will also redirect foo/ and
35#   # foo/test.html. Note that the redirect type is optional. This will be
36#   # treated as a permanent redirect.
37#
38# - src: /(.+droid(/.*)?)$
39#   dst: /droids/\1
40#   type: permanent
41#   # Redirect /android to /droids/android and /bugdroid to
42#   # /droids/bugdroid. However, it will not redirect /droid or
43#   # /bugdroids.
44
45#
46# - src: /google
47#   dst: http://www.google.com
48#   type: temporary
49#   # This is an example of a redirect to an absolute URI.
50#
51#
52#   WATCH OUT -- SRC LINE HAS TO START WITH A HYPHEN !!
53
54redirects:
55# new one works
56- src: /sdk/android-
57  dst: /about/versions/android-
58  type: permanent
59  comment: Redirect sdk reference to new location
60
61# new one works
62- src: /sdk/oem-usb.html
63  dst: /tools/extras/oem-usb.html
64  type: permanent
65  comment: Redirect sdk reference to new location
66
67- src: /sdk/installing.html
68  dst: /sdk/installing/index.html
69  type: permanent
70  comment: Redirect sdk reference to new location
71
72# new one works
73- src: /sdk/compatibility-library.html
74  dst: /tools/extras/support-library.html
75  type: permanent
76  comment: Redirect sdk reference to new location
77
78# new one works
79- src: /sdk/eclipse-adt.html
80  dst: /tools/sdk/eclipse-adt.html
81  type: permanent
82  comment: Redirect sdk reference to new location
83
84# new one works
85- src: /sdk/tools-notes.html
86  dst: /tools/sdk/tools-notes.html
87  type: permanent
88  comment: Redirect sdk reference to new location
89
90# new one works
91- src: /sdk/adding-components.html
92  dst: /sdk/exploring.html
93  type: permanent
94  comment: Redirect sdk reference to new location
95
96#new one works
97- src: /sdk/ndk/
98  dst: /tools/sdk/ndk/
99  type: permanent
100  comment: Redirect sdk reference to new location
101
102#new one works
103- src: /sdk/requirements.html
104  dst: /sdk/index.html
105  type: permanent
106  comment: Redirect sdk reference to new location
107
108- src: /sdk/installing/next.html
109  dst: /training/basics/firstapp/index.html
110  type: permanent
111  comment: Next steps doc was lame and everybody should go to first class
112
113
114#- src: /sdk/(?!index.html|installing/|exploring)
115#  dst: /tools/sdk/
116#  type: permanent
117#  comment: Redirect sdk reference to new location
118
119#- src: /sdk/compatibility
120#  dst: /tools/sdk/support-package.html
121#  type: permanent
122#  comment: Redirect to new location
123
124# new one
125- src: /guide/market/
126  dst: /google/play/
127  type: permanent
128  comment: redirect billing to new loc
129
130- src: /guide/google/gcm/client-javadoc/.*
131  dst: /reference/com/google/android/gcm/package-summary.html
132  type: permanent
133  comment: redirect to new loc
134
135- src: /guide/google/gcm/server-javadoc/.*
136  dst: /reference/com/google/android/gcm/server/package-summary.html
137  type: permanent
138  comment: redirect to new loc
139
140- src: /guide/google/play/services.html
141  dst: /google/play-services/index.html
142  type: permanent
143  comment: redirect to new loc
144
145- src: /guide/google/
146  dst: /google/
147  type: permanent
148  comment: redirect to new loc
149
150- src: /guide/publishing/licensing.html
151  dst: /google/play/licensing/index.html
152  type: permanent
153  comment: Redirect Licensing docs to new location
154
155# new one
156- src: /google/play/billing/billing_about.html
157  dst: /google/play/billing/index.html
158  type: permanent
159  comment: Redirect Licensing docs to new location
160
161- src: /guide/developing/tools/
162  dst: /tools/help/
163  type: permanent
164  comment: Redirect to new location
165
166- src: /guide/developing/
167  dst: /tools/
168  type: permanent
169  comment: Redirect to new location
170
171- src: /tools/aidl.html
172  dst: /guide/components/aidl.html
173  type: permanent
174
175- src: /guide/market/publishing/multiple-apks.html
176  dst: /google/play/publishing/multiple-apks.html
177  type: permanent
178  comment: Redirect to new location
179
180- src: /guide/publishing/publishing.html
181  dst: /distribute/googleplay/publish/preparing.html
182  type: permanent
183  comment: Redirect to new location
184
185- src: /guide/publishing/
186  dst: /tools/publishing/
187  type: permanent
188  comment: Redirect to new location
189
190- src: /guide/topics/fundamentals.html
191  dst: /guide/components/fundamentals.html
192  type: permanent
193
194- src: /guide/topics/intents/intents-filters.html
195  dst: /guide/components/intents-filters.html
196  type: permanent
197
198- src: /guide/topics/fundamentals/
199  dst: /guide/components/
200  type: permanent
201  comment: Redirect to new location
202
203- src: /guide/topics/clipboard/copy-paste.html
204  dst: /guide/topics/text/copy-paste.html
205  type: permanent
206  comment: Redirect to new location
207
208- src: /guide/topics/ui/notifiers/index.html
209  dst: /guide/topics/ui/notifiers/notifications.html
210  type: permanent
211  comment: Flatten side nav to make Notifications and Toasts separate
212
213# new one
214- src: /guide/topics/wireless/
215  dst: /guide/topics/connectivity/
216  type: permanent
217  comment: Redirect to new location
218
219# new one
220- src: /guide/topics/drawing/.*
221  dst: /guide/topics/graphics/opengl.html
222  type: permanent
223  comment: Redirect to new location
224
225- src: /guide/topics/connectivity/usb/adk.html
226  dst: /tools/adk/index.html
227  type: permanent
228
229- src: /tools/adk/aoa.html
230  dst: http://source.android.com/tech/accessories/aoap/aoa.html
231  type: permanent
232  comment: Open Accessory Protocol content has moved to source.android.com.
233
234- src: /tools/adk/aoa2.html
235  dst: http://source.android.com/tech/accessories/aoap/aoa2.html
236  type: permanent
237  comment: Open Accessory Protocol content has moved to source.android.com.
238
239- src: /guide/topics/usb
240  dst: /guide/topics/connectivity/usb
241  type: permanent
242  comment: Redirect to new location
243
244# new one
245- src: /guide/appendix/api-levels.html
246  dst: /guide/topics/manifest/uses-sdk-element.html#ApiLevels
247  type: permanent
248  comment: Redirect to new location
249
250- src: /guide/appendix/install-location.html
251  dst: /guide/topics/data/install-location.html
252  type: permanent
253  comment: Redirect to new location
254
255# new one
256- src: /guide/basics/what-is-android.html
257  dst: /about/index.html
258  type: permanent
259  comment: Redirect to new location
260
261- src: /guide/topics/security/security.html
262  dst: /training/articles/security-tips.html
263  type: permanent
264  comment: Redirect to new location
265
266# new one
267- src: /guide/appendix/market-filters.html
268  dst: /google/play/filters.html
269  type: permanent
270  comment: Redirect to new location
271
272- src: /guide/topics/testing/
273  dst: /tools/testing/
274  type: permanent
275
276- src: /guide/topics/graphics/animation.html
277  dst: /guide/topics/graphics/overview.html
278  type: permanent
279  comment: Redirect to new location
280
281- src: /guide/topics/graphics/renderscript/(compute.html|index.html|reference.html)
282  dst: /guide/topics/renderscript/index.html
283  type: permanent
284  comment: Redirect to new location
285
286- src: /guide/topics/graphics/renderscript.html
287  dst: /guide/topics/renderscript/index.html
288  type: permanent
289  comment: Redirect to new location
290
291- src: /guide/topics/location/obtaining-user-location.html
292  dst: /guide/topics/location/strategies.html
293  type: permanent
294  comment: Redirect to new location
295
296# new one
297- src: /guide/topics/nfc/
298  dst: /guide/topics/connectivity/nfc/
299  type: permanent
300  comment: Redirect to new location
301
302# new one
303- src: /guide/topics/wireless/
304  dst: /guide/topics/connectivity/
305  type: permanent
306  comment: Redirect to new location
307
308# new one
309- src: /guide/topics/network/
310  dst: /guide/topics/connectivity/
311  type: permanent
312  comment: Redirect to new location
313
314# new one
315- src: /resources/articles/creating-input-method.html
316  dst: /guide/topics/text/creating-input-method.html
317  type: permanent
318
319# new one
320- src: /resources/articles/spell-checker-framework.html
321  dst: /guide/topics/text/spell-checker-framework.html
322  type: permanent
323
324# new one
325- src: /resources/tutorials/notepad/
326  dst: /training/notepad/
327  type: permanent
328  comment: this is only for external links, until we update this documentation
329
330# new one
331- src: /resources/faq/
332  dst: /guide/faq/
333  type: permanent
334  comment: FAQ still needs a permanent home
335
336# new one
337- src: /resources/tutorials/hello-world.html
338  dst: /training/basics/firstapp/index.html
339  type: permanent
340  comment: Redirect to new location
341
342# add the rest of the tutorials here
343
344- src: /guide/practices/design/
345  dst: /guide/practices/
346  type: permanent
347  comment: Redirect to new location
348
349- src: /guide/practices/accessibility.html
350  dst: /guide/topics/ui/accessibility/index.html
351  type: permanent
352
353# move best practices to training
354
355- src: /guide/practices/app-design/performance.html
356  dst: /training/articles/perf-tips.html
357  type: permanent
358
359- src: /guide/practices/performance.html
360  dst: /training/articles/perf-tips.html
361  type: permanent
362
363- src: /guide/practices/app-design/responsiveness.html
364  dst: /training/articles/perf-anr.html
365  type: permanent
366
367- src: /guide/practices/responsiveness.html
368  dst: /training/articles/perf-anr.html
369  type: permanent
370
371- src: /guide/practices/security.html
372  dst: /training/articles/security-tips.html
373  type: permanent
374
375- src: /guide/practices/jni.html
376  dst: /training/articles/perf-jni.html
377  type: permanent
378
379
380
381# new one
382- src: /resources/dashboard/.*
383  dst: /about/dashboards/index.html
384  type: permanent
385  comment: Redirect to new location
386
387- src: /resources/community-groups.html
388  dst: /support.html
389  type: permanent
390  comment: Redirect to new location
391
392- src: /guide/tutorials/
393  dst: /resources/tutorials/
394  type: permanent
395
396- src: /resources/tutorials/views/hello-linearlayout.html
397  dst: /guide/topics/ui/layout/linear.html
398  type: permanent
399  comment: Redirect to new location
400
401- src: /resources/tutorials/views/hello-relativelayout.html
402  dst: /guide/topics/ui/layout/relative.html
403  type: permanent
404  comment: Redirect to new location
405
406- src: /resources/tutorials/views/hello-listview.html
407  dst: /guide/topics/ui/layout/listview.html
408  type: permanent
409  comment: Redirect to new location
410
411- src: /resources/tutorials/views/hello-gridview.html
412  dst: /guide/topics/ui/layout/gridview.html
413  type: permanent
414  comment: Redirect to new location
415
416- src: /resources/tutorials/views/hello-webview.html
417  dst: /guide/webapps/webview.html
418  type: permanent
419  comment: Redirect to new location
420
421- src: /resources/tutorials/views/hello-formstuff.html
422  dst: /guide/topics/ui/controls.html
423  type: permanent
424  comment: Redirect to new location
425
426- src: /resources/tutorials/views/hello-datepicker.html
427  dst: /guide/topics/ui/controls/pickers.html
428  type: permanent
429  comment: Redirect to new location
430
431- src: /resources/tutorials/views/hello-timepicker.html
432  dst: /guide/topics/ui/controls/pickers.html
433  type: permanent
434  comment: Redirect to new location
435
436- src: /resources/tutorials/views/hello-autocomplete.html
437  dst: /guide/topics/ui/controls/text.html
438  type: permanent
439  comment: Redirect to new location
440
441- src: /resources/tutorials/views/hello-spinner.html
442  dst: /guide/topics/ui/controls/spinner.html
443  type: permanent
444  comment: Redirect to new location
445
446- src: /resources/tutorials/opengl/opengl-es10.html
447  dst: /training/graphics/opengl/index.html
448  type: permanent
449
450- src: /resources/tutorials/opengl/opengl-es20.html
451  dst: /training/graphics/opengl/index.html
452  type: permanent
453
454- src: /resources/tutorials/views/hello-mapview.html
455  dst: https://developers.google.com/maps/documentation/android/hello-mapview
456  type: permanent
457
458- src: /resources/tutorials/views/.*
459  dst: /guide/topics/ui/declaring-layout.html#CommonLayouts
460  type: permanent
461
462- src: /guide/topics/ui/layout-objects.html
463  dst: /guide/topics/ui/declaring-layout.html#CommonLayouts
464  type: permanent
465
466- src: /resources/tutorials/localization/.*
467  dst: /training/basics/supporting-devices/languages.html
468  type: permanent
469
470- src: /resources/samples/.*
471  dst: /tools/samples/index.html
472  type: permanent
473  comment: Redirect to new location
474
475- src: /resources/(?!articles)
476  dst: /training/
477  type: permanent
478  comment: Redirect to new location
479
480- src: /guide/publishing/publishing.html#BuildaButton
481  dst: /distribute/googleplay/promote/badges.html
482  type: permanent
483  comment: Redirect to new location
484
485- src: /guide/index.html
486  dst: /guide/components/index.html
487  type: permanent
488  comment: Redirect to new location
489
490
491
492# ------------------- TRAINING -------------------
493
494- src: /training/cloudsync/aesync.html
495  dst: /google/gcm/index.html
496  type: permanent
497  comment: Syncing with App Engine was removed because it's obsolete.
498
499
500# -------------------- MISC ----------------------
501
502- src: /shareables/
503  dst: http://commondatastorage.googleapis.com/androiddevelopers/shareables/
504  type: permanent
505  comment: Redirect to new location
506
507- src: /downloads/
508  dst: http://commondatastorage.googleapis.com/androiddevelopers/
509  type: permanent
510  comment: Redirect to new location
511
512- src: /search.html
513  dst: /index.html
514  type: permanent
515  comment: Redirect to new location
516
517- src: /videos/index.html
518  dst: /develop/index.html
519  type: permanent
520  comment: Redirect to new location
521
522- src: /live/index.html
523  dst: https://developers.google.com/live/
524  type: permanent
525  comment: Redirect to new location
526
527
528
529
530
531# -------------------- EASTER EGG REDIRECTS ----------------------
532
533
534
535
536
537# ---------- PLATFORM VERSIONS ----------------
538
539- src: /4.2
540  dst: /about/versions/android-4.2.html
541  type: permanent
542
543- src: /4.1
544  dst: /about/versions/android-4.1.html
545  type: permanent
546
547- src: /4.0
548  dst: /about/versions/android-4.0.html
549  type: permanent
550
551- src: /(j|jb|jellybean)/?$
552  dst: /about/versions/jelly-bean.html
553  type: permanent
554
555- src: /(i|ics|icecreamsandwich)/?$
556  dst: /about/versions/android-4.0-highlights.html
557  type: permanent
558
559- src: /(h|hc|honeycomb)/?$
560  dst: /about/versions/android-3.0-highlights.html
561  type: permanent
562
563- src: /(g|gb|gingerbread)/?$
564  dst: /about/versions/android-2.3-highlights.html
565  type: permanent
566
567# ---------- MISC -----------------
568
569- src: /%2B/?$
570  dst: https://plus.google.com/108967384991768947849/posts
571  type: permanent
572  comment: Redirect /+ and /+/ to Google+
573
574- src: /blog
575  dst: http://android-developers.blogspot.com/
576  type: permanent
577
578- src: /stats
579  dst: /about/dashboards/index.html
580  type: permanent
581
582- src: /youtube
583  dst: http://www.youtube.com/user/androiddevelopers
584  type: permanent
585
586- src: /playbadge
587  dst: http://developer.android.com/distribute/googleplay/promote/badges.html
588  type: permanent
589
590- src: /deviceart
591  dst: http://developer.android.com/distribute/promote/device-art.html
592  type: permanent
593