Skip to content

Commit d923327

Browse files
committed
Implement 404 page
1 parent 11ab133 commit d923327

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.htaccess

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# custom error pages
2+
3+
ErrorDocument 404 /404.html
4+
5+
# cache-control
6+
# one month for most static assets
7+
8+
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico|tff)$">
9+
Header set Cache-Control "max-age=2628000, public"
10+
</filesMatch>

404.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: standalone
3+
title: Page not found
4+
permalink: /404.html
5+
---
6+
7+
<p>404 error. Oops, something went wrong. Try <a href="/search/">searching</a> to find what you were looking for.</p>

0 commit comments

Comments
 (0)