We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c70eaf9 commit 4ccba3bCopy full SHA for 4ccba3b
404.html
@@ -0,0 +1,27 @@
1
+<!DOCTYPE html>
2
+<html>
3
+ <head>
4
+ <title>404 Not Found</title>
5
+ <script>
6
+ var oldHome = "http://www.macruby.org";
7
+
8
+ function redirectOr404(req, status) {
9
+ if (status == 200) {
10
+ document.location = oldHome + document.location.pathname;
11
+ }
12
+ else {
13
+ document.write("<h1>Not Found</h1><p>The requested URL " + document.location.pathname + " was not found on this server.</p>");
14
15
16
17
+ var client = new XMLHttpRequest();
18
+ client.onreadystatechange = function () {
19
+ if (this.readyState == 4)
20
+ redirectOr404(this, this.status);
21
22
+ client.open("HEAD", oldHome + document.location.pathname);
23
+ client.send();
24
+ </script>
25
+ </head>
26
+ <body></body>
27
+</html>
0 commit comments