Permalink
Browse files

Set error page content.

  • Loading branch information...
1 parent 160ee24 commit 1dfa8effc74d1ae555e93490adca249d4eb2bb6b @jasoncodes committed Jan 17, 2010
Showing with 15 additions and 0 deletions.
  1. +7 −0 .htaccess
  2. +8 −0 404.markdown
View
@@ -50,6 +50,13 @@ AddType font/otf otf
AddType application/vnd.ms-fontobject eot
AddType image/vnd.microsoft.icon ico
+# set our 404 handler
+# we don't use "404.html" here as our rewrite rules from above apply
+# (i.e. it would 301 to /404.html instead of returning 404)
+ErrorDocument 404 /404
+# we get a 403 from accessing directories without index files. This is effectively a 404 as well.
+ErrorDocument 403 /404
+
# tell IE we want the best renderer available (Chrome Frame if possible)
<Files "*.html">
Header set X-UA-Compatible "IE=edge,chrome=1"
View
@@ -0,0 +1,8 @@
+---
+layout: default
+title: 404 Not Found
+---
+
+# 404 Not Found
+
+These aren't the droids you're looking for.

0 comments on commit 1dfa8ef

Please sign in to comment.