• 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/(?!index.html|installing/|exploring)
109#  dst: /tools/sdk/
110#  type: permanent
111#  comment: Redirect sdk reference to new location
112
113#- src: /sdk/compatibility
114#  dst: /tools/sdk/support-package.html
115#  type: permanent
116#  comment: Redirect to new location
117
118# new one
119- src: /guide/market/
120  dst: /guide/google/play/
121  type: permanent
122  comment: redirect billing to new loc
123
124# new one
125- src: /guide/publishing/licensing.html
126  dst: /guide/google/play/licensing/index.html
127  type: permanent
128  comment: Redirect Licensing docs to new location
129
130- src: /guide/developing/tools/
131  dst: /tools/help/
132  type: permanent
133  comment: Redirect to new location
134
135- src: /guide/developing/
136  dst: /tools/
137  type: permanent
138  comment: Redirect to new location
139
140- src: /tools/aidl.html
141  dst: /guide/components/aidl.html
142  type: permanent
143  comment: bug 6755311, aidl doc found by search under tools
144
145- src: /guide/market/publishing/multiple-apks.html
146  dst: /guide/google/play/publishing/multiple-apks.html
147  type: permanent
148  comment: Redirect to new location
149
150- src: /guide/publishing/publishing.html
151  dst: /distribute/googleplay/publish/preparing.html
152  type: permanent
153  comment: Redirect to new location
154
155- src: /guide/publishing/
156  dst: /tools/publishing/
157  type: permanent
158  comment: Redirect to new location
159
160- src: /guide/topics/fundamentals.html
161  dst: /guide/components/fundamentals.html
162  type: permanent
163
164- src: /guide/topics/intents/intents-filters.html
165  dst: /guide/components/intents-filters.html
166  type: permanent
167
168- src: /guide/topics/fundamentals/
169  dst: /guide/components/
170  type: permanent
171  comment: Redirect to new location
172
173- src: /guide/topics/clipboard/copy-paste.html
174  dst: /guide/topics/text/copy-paste.html
175  type: permanent
176  comment: Redirect to new location
177
178# new one
179- src: /guide/topics/wireless/
180  dst: /guide/topics/connectivity/
181  type: permanent
182  comment: Redirect to new location
183
184# new one
185- src: /guide/topics/drawing/.*
186  dst: /guide/topics/graphics/opengl.html
187  type: permanent
188  comment: Redirect to new location
189
190- src: /guide/topics/connectivity/usb/adk.html
191  dst: /tools/adk/index.html
192  type: permanent
193
194- src: /guide/topics/usb
195  dst: /guide/topics/connectivity/usb
196  type: permanent
197  comment: Redirect to new location
198
199# new one
200- src: /guide/appendix/api-levels.html
201  dst: /guide/topics/manifest/uses-sdk-element.html#ApiLevels
202  type: permanent
203  comment: Redirect to new location
204
205- src: /guide/appendix/install-location.html
206  dst: /guide/topics/data/install-location.html
207  type: permanent
208  comment: Redirect to new location
209
210# new one
211- src: /guide/basics/what-is-android.html
212  dst: /about/index.html
213  type: permanent
214  comment: Redirect to new location
215
216- src: /guide/topics/security/security.html
217  dst: /guide/topics/security/permissions.html
218  type: permanent
219  comment: Redirect to new location
220
221# new one
222- src: /guide/appendix/market-filters.html
223  dst: /guide/google/play/filters.html
224  type: permanent
225  comment: Redirect to new location
226
227- src: /guide/topics/testing/
228  dst: /tools/testing/
229  type: permanent
230
231- src: /guide/topics/graphics/animation.html
232  dst: /guide/topics/graphics/overview.html
233  type: permanent
234  comment: Redirect to new location
235
236- src: /guide/topics/graphics/renderscript/(compute.html|index.html|reference.html)
237  dst: /guide/topics/renderscript/index.html
238  type: permanent
239  comment: Redirect to new location
240
241- src: /guide/topics/location/obtaining-user-location.html
242  dst: /guide/topics/location/strategies.html
243  type: permanent
244  comment: Redirect to new location
245
246# new one
247- src: /guide/topics/nfc/
248  dst: /guide/topics/connectivity/nfc/
249  type: permanent
250  comment: Redirect to new location
251
252# new one
253- src: /guide/topics/wireless/
254  dst: /guide/topics/connectivity/
255  type: permanent
256  comment: Redirect to new location
257
258# new one
259- src: /guide/topics/network/
260  dst: /guide/topics/connectivity/
261  type: permanent
262  comment: Redirect to new location
263
264# new one
265- src: /resources/articles/creating-input-method.html
266  dst: /guide/topics/text/creating-input-method.html
267  type: permanent
268
269# new one
270- src: /resources/articles/spell-checker-framework.html
271  dst: /guide/topics/text/spell-checker-framework.html
272  type: permanent
273
274# new one
275- src: /resources/tutorials/notepad/
276  dst: /training/notepad/
277  type: permanent
278  comment: this is only for external links, until we update this documentation
279
280# new one
281- src: /resources/faq/
282  dst: /guide/faq/
283  type: permanent
284  comment: FAQ still needs a permanent home
285
286# new one
287- src: /resources/tutorials/hello-world.html
288  dst: /training/basics/firstapp/index.html
289  type: permanent
290  comment: Redirect to new location
291
292# add the rest of the tutorials here
293
294- src: /guide/practices/design/
295  dst: /guide/practices/
296  type: permanent
297  comment: Redirect to new location
298
299# new one
300- src: /resources/dashboard/.*
301  dst: /about/dashboards/index.html
302  type: permanent
303  comment: Redirect to new location
304
305- src: /resources/community-groups.html
306  dst: /support.html
307  type: permanent
308  comment: Redirect to new location
309
310- src: /guide/tutorials/
311  dst: /resources/tutorials/
312  type: permanent
313
314- src: /resources/tutorials/views/hello-linearlayout.html
315  dst: /guide/topics/ui/layout/linear.html
316  type: permanent
317  comment: Redirect to new location
318
319- src: /resources/tutorials/views/hello-relativelayout.html
320  dst: /guide/topics/ui/layout/relative.html
321  type: permanent
322  comment: Redirect to new location
323
324- src: /resources/tutorials/views/hello-listview.html
325  dst: /guide/topics/ui/layout/listview.html
326  type: permanent
327  comment: Redirect to new location
328
329- src: /resources/tutorials/views/hello-gridview.html
330  dst: /guide/topics/ui/layout/gridview.html
331  type: permanent
332  comment: Redirect to new location
333
334- src: /resources/tutorials/views/hello-webview.html
335  dst: /guide/webapps/webview.html
336  type: permanent
337  comment: Redirect to new location
338
339- src: /resources/tutorials/views/hello-formstuff.html
340  dst: /guide/topics/ui/controls.html
341  type: permanent
342  comment: Redirect to new location
343
344- src: /resources/tutorials/views/hello-datepicker.html
345  dst: /guide/topics/ui/controls/pickers.html
346  type: permanent
347  comment: Redirect to new location
348
349- src: /resources/tutorials/views/hello-timepicker.html
350  dst: /guide/topics/ui/controls/pickers.html
351  type: permanent
352  comment: Redirect to new location
353
354- src: /resources/tutorials/views/hello-autocomplete.html
355  dst: /guide/topics/ui/controls/text.html
356  type: permanent
357  comment: Redirect to new location
358
359- src: /resources/tutorials/views/hello-spinner.html
360  dst: /guide/topics/ui/controls/spinner.html
361  type: permanent
362  comment: Redirect to new location
363
364- src: /resources/tutorials/opengl/opengl-es10.html
365  dst: /training/graphics/opengl/index.html
366  type: permanent
367
368- src: /resources/tutorials/opengl/opengl-es20.html
369  dst: /training/graphics/opengl/index.html
370  type: permanent
371
372- src: /training/tutorials/views/hello-mapview.html
373  dst: https://developers.google.com/maps/documentation/android/hello-mapview
374  type: permanent
375
376- src: /training/tutorials/views/.*
377  dst: /guide/topics/ui/declaring-layout.html#CommonLayouts
378  type: permanent
379
380- src: /resources/samples/.*
381  dst: /tools/samples/index.html
382  type: permanent
383  comment: Redirect to new location
384
385- src: /resources/(?!articles)
386  dst: /training/
387  type: permanent
388  comment: Redirect to new location
389
390- src: /guide/publishing/publishing.html#BuildaButton
391  dst: /distribute/googleplay/promote/badges.html
392  type: permanent
393  comment: Redirect to new location
394
395- src: /guide/index.html
396  dst: /guide/components/index.html
397  type: permanent
398  comment: Redirect to new location
399
400- src: /shareables/
401  dst: http://commondatastorage.googleapis.com/androiddevelopers/shareables/
402  type: permanent
403  comment: Redirect to new location
404
405- src: /search.html
406  dst: /index.html
407  type: permanent
408  comment: Redirect to new location
409
410- src: /videos/index.html
411  dst: /develop/index.html
412  type: permanent
413  comment: Redirect to new location
414
415
416
417
418
419
420
421# -------------------- EASTER EGG REDIRECTS ----------------------
422
423
424
425
426
427# ---------- PLATFORM VERSIONS ----------------
428
429- src: /4.1
430  dst: /about/versions/android-4.1.html
431  type: permanent
432
433- src: /jb
434  dst: /about/versions/jelly-bean.html
435  type: permanent
436
437- src: /4.0
438  dst: /about/versions/android-4.0.html
439  type: permanent
440
441- src: /ics
442  dst: /about/versions/android-4.0-highlights.html
443  type: permanent
444
445- src: /hc
446  dst: /about/versions/android-3.0-highlights.html
447  type: permanent
448
449- src: /gb
450  dst: /about/versions/android-2.3-highlights.html
451  type: permanent
452
453
454
455# ---------- MISC -----------------
456
457- src: /%2B/?$
458  dst: https://plus.google.com/108967384991768947849/posts
459  type: permanent
460  comment: Redirect /+ and /+/ to Google+
461
462- src: /blog
463  dst: http://android-developers.blogspot.com/
464  type: permanent
465
466- src: /stats
467  dst: /about/dashboards/index.html
468  type: permanent
469
470
471