Skip to content

Commit

Permalink
Update 404.md
Browse files Browse the repository at this point in the history
  • Loading branch information
johndmulhausen committed Mar 11, 2016
1 parent 95045b3 commit 1385f34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 404.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1385f34

Please sign in to comment.