feat(aio): redirect old URLs to new ones (#16162)

There are external resources that link to the old URLs. In order to avoid
breaking them, the old URLs are redirected to the new ones.

Fixes #15795
Closes #16133

PR Close #16162
This commit is contained in:
Georgios Kalpakas 2017-04-19 18:32:55 +03:00 committed by Miško Hevery
parent 05d1008a08
commit 1bfa7c6f14
1 changed files with 23 additions and 0 deletions

View File

@ -5,6 +5,29 @@
"hosting": {
"public": "dist",
"cleanUrls": true,
"redirects": [
// cli-quickstart.html glossary.html, quickstart.html
{"type": 301, "source": "/docs/ts/latest/cli-quickstart.html", "destination": "/guide/cli-quickstart"},
{"type": 301, "source": "/docs/ts/latest/glossary.html", "destination": "/guide/glossary"},
{"type": 301, "source": "/docs/ts/latest/quickstart.html", "destination": "/guide/quickstart"},
// cookbook, cookbook/, cookbook/index.html
{"type": 301, "source": "/docs/ts/latest/cookbook", "destination": "/guide/cb-index"},
{"type": 301, "source": "/docs/ts/latest/cookbook/", "destination": "/guide/cb-index"},
{"type": 301, "source": "/docs/ts/latest/cookbook/index.html", "destination": "/guide/cb-index"},
// cookbook/dependency-injection.html
{"type": 301, "source": "/docs/ts/latest/cookbook/dependency-injection.html", "destination": "/guide/cb-dependency-injection"},
// cookbook/*.html
{"type": 301, "source": "/docs/ts/latest/cookbook/:cookbook.html", "destination": "/guide/:cookbook"},
// docs/ts/latest/api/*/index/*-type.html
{"type": 301, "source": "/docs/ts/latest/api/:package/index/:api-type.html", "destination": "/api/:package/:api"},
// guide/*, tutorial/*, **/*
{"type": 301, "source": "/docs/ts/latest/:any*", "destination": "/:any*"}
],
"rewrites": [
{
"source": "**/!(*.*)",