Add 404 redirects (#4675)

* Add redirect for legacy kubectl links

* remove js redirect for kubectl

* fix link URLs

* add 404 redirects

* remove js forwarding rules

* clean up _redirects

* fix coreos links
This commit is contained in:
Andrew Chen
2017-08-07 15:13:14 -07:00
committed by GitHub
parent c153bcb02b
commit 6da5f52fb2
4 changed files with 114 additions and 23 deletions
+1 -13
View File
@@ -15,19 +15,7 @@ $( document ).ready(function() {
* "postfix": "/#<token>" //[optional] append this to base URL w/ <token> found by "pattern"
* }
*/
var forwardingRules = [{
"from":"/docs/api-reference/v1/definitions",
"pattern":"#_v1_(\\w+)",
"to":"/docs/api-reference/v1.7",
"postfix":"/#<token>-v1-core"
},
{
"from":"/docs/contribute/",
"pattern":"\/contribute\/([0-9a-zA-Z\-\_]+)",
"to":"/docs/home/contribute",
"postfix":"/<token>"
}
];
var forwardingRules = [];
forwardingRules.forEach(function(rule) {
if (forwardingURL.indexOf(rule.from) > -1) {