Add redirect for legacy kubectl links (#4672)
* Add redirect for legacy kubectl links * remove js redirect for kubectl
This commit is contained in:
parent
f16dfcf349
commit
68a3a7e074
|
|
@ -220,6 +220,11 @@
|
||||||
|
|
||||||
/docs/whatisk8s /docs/concepts/overview/what-is-kubernetes 301
|
/docs/whatisk8s /docs/concepts/overview/what-is-kubernetes 301
|
||||||
|
|
||||||
|
#
|
||||||
|
# pattern matching redirects
|
||||||
|
#
|
||||||
|
/docs/user-guide/kubectl/kubectl_* /docs/user-guide/kubectl/v1.7/#:splat 200
|
||||||
|
|
||||||
#
|
#
|
||||||
# redirects from /js/redirects.js
|
# redirects from /js/redirects.js
|
||||||
#
|
#
|
||||||
|
|
|
||||||
|
|
@ -21,12 +21,6 @@ $( document ).ready(function() {
|
||||||
"to":"/docs/api-reference/v1.7",
|
"to":"/docs/api-reference/v1.7",
|
||||||
"postfix":"/#<token>-v1-core"
|
"postfix":"/#<token>-v1-core"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"from":"/docs/user-guide/kubectl/kubectl_",
|
|
||||||
"pattern":"kubectl_(\\w+)",
|
|
||||||
"to":"/docs/user-guide/kubectl/v1.7",
|
|
||||||
"postfix":"/#<token>"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"from":"/docs/contribute/",
|
"from":"/docs/contribute/",
|
||||||
"pattern":"\/contribute\/([0-9a-zA-Z\-\_]+)",
|
"pattern":"\/contribute\/([0-9a-zA-Z\-\_]+)",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue