Browse files

custom 404

  • Loading branch information...
1 parent 7dd6f56 commit f4d7e65505dec8789774cf109dca42fb43a824a6 @benadida committed Oct 15, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 404.html
View
6 404.html
@@ -5,15 +5,17 @@
var match = document.location.toString().match("http://ben.adida.net/research/([^/]*)");
if (match) {
var new_url = "http://assets.adida.net/research/" + match[1];
- $('#redirect').html("this page has moved to <a href=\" + new_url + "\">" + new_url + "</a>");
+ $('#redirect').show();
+ $('#newurl').attr('href',new_url).html(new_url);
}
});
</script>
<body>
<h1>Page Not Found
</h1>
-<p id="redirect">
+<p id="redirect" style="display:none;">
+This page has moved to <a id="newurl" href=""></a>
</p>
</body>
</html>

0 comments on commit f4d7e65

Please sign in to comment.