website/404.md

47 lines
1.3 KiB
Markdown
Raw Normal View History

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-17 22:35:36 +00:00
var fwdDirs=["examples/"];
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;
window.location.replace(http://kubernetes.io/kubernetes/third_party/swagger-ui/)
}
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_."