Update 404.md

pull/107/head
johndmulhausen 2016-03-11 09:14:40 +00:00
parent 95045b31b9
commit 1385f34756
1 changed files with 2 additions and 2 deletions

4
404.md
View File

@ -6,13 +6,13 @@ permalink: /404.html
<script language="JavaScript">
$( document ).ready(function() {
var oldURLs=[".html",".md","/v1.1","/v1.0","README"];
var oldURLs=[".html",".md","/v1.1/","/v1.0/","/README"];
var doRedirect=false;
var forwardingURL=window.location.href;
for (i=0;i<oldURLs.length;i++) {
if (forwardingURL.indexOf(oldURLs[i]) > -1) {
doRedirect=true;
forwardingURL=forwardingURL.replace(oldURLs[i],"");
forwardingURL=forwardingURL.replace(oldURLs[i],"/");
}
}
if (doRedirect) {