2016-02-23 07:49:14 +00:00
|
|
|
---
|
|
|
|
layout: docwithnav
|
|
|
|
title: 404 Error!
|
2016-02-23 09:10:47 +00:00
|
|
|
permalink: /404.html
|
2016-02-23 07:49:14 +00:00
|
|
|
---
|
2016-03-11 08:43:14 +00:00
|
|
|
<script language="JavaScript">
|
|
|
|
$( document ).ready(function() {
|
2016-03-17 20:56:03 +00:00
|
|
|
var oldURLs=["/README.md","/README.html",".html",".md","/v1.1/","/v1.0/"];
|
2016-03-22 23:51:08 +00:00
|
|
|
var fwdDirs=["examples/","cluster/","docs/devel/"];
|
2016-03-17 20:56:03 +00:00
|
|
|
var doRedirect = false;
|
|
|
|
var notHere = false;
|
2016-03-11 08:57:25 +00:00
|
|
|
var forwardingURL=window.location.href;
|
2016-03-17 22:35:36 +00:00
|
|
|
if (forwardingURL.indexOf("third_party/swagger-ui") > -1)
|
|
|
|
{
|
|
|
|
notHere = true;
|
2016-03-17 22:36:44 +00:00
|
|
|
window.location.replace("http://kubernetes.io/kubernetes/third_party/swagger-ui/");
|
2016-03-18 00:49:46 +00:00
|
|
|
}
|
|
|
|
if (forwardingURL.indexOf("docs/design") > -1)
|
|
|
|
{
|
|
|
|
notHere = true;
|
2016-03-18 00:53:33 +00:00
|
|
|
window.location.replace("https://github.com/kubernetes/kubernetes/tree/{{page.githubbranch}}/docs/design");
|
2016-03-17 22:35:36 +00:00
|
|
|
}
|
2016-03-17 22:48:59 +00:00
|
|
|
if (forwardingURL.indexOf("api-ref/") > -1)
|
|
|
|
{
|
|
|
|
notHere = true;
|
|
|
|
window.location.replace("http://kubernetes.io/docs/api/");
|
|
|
|
}
|
2016-03-17 20:56:03 +00:00
|
|
|
for (i=0;i<fwdDirs.length;i++) {
|
|
|
|
if (forwardingURL.indexOf(fwdDirs[i]) > -1)
|
|
|
|
{
|
|
|
|
var urlPieces = forwardingURL.split(fwdDirs[i]);
|
2016-03-17 22:35:36 +00:00
|
|
|
var newURL = "https://github.com/kubernetes/kubernetes/tree/{{page.githubbranch}}/" + fwdDirs[i] + urlPieces[1];
|
2016-03-17 20:56:03 +00:00
|
|
|
notHere = true;
|
|
|
|
window.location.replace(newURL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!notHere) {
|
|
|
|
for (i=0;i<oldURLs.length;i++) {
|
|
|
|
if (forwardingURL.indexOf(oldURLs[i]) > -1)
|
|
|
|
{
|
|
|
|
doRedirect=true;
|
|
|
|
forwardingURL=forwardingURL.replace(oldURLs[i],"/");
|
|
|
|
}
|
2016-03-11 08:57:25 +00:00
|
|
|
}
|
2016-03-17 20:56:03 +00:00
|
|
|
if (doRedirect)
|
|
|
|
{
|
|
|
|
window.location.replace(forwardingURL);
|
|
|
|
};
|
2016-03-11 08:43:14 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2016-02-23 09:10:47 +00:00
|
|
|
Sorry, this page was not found. :(
|
2016-02-23 07:49:14 +00:00
|
|
|
|
2016-02-23 09:10:47 +00:00
|
|
|
You can let us know by filling out the "I wish this page" text field at
|
2016-03-11 08:43:14 +00:00
|
|
|
the bottom of this page. Maybe try: "I wish this page _existed_."
|