Update 404.md
parent
95045b31b9
commit
1385f34756
4
404.md
4
404.md
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue