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