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