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