This commit is contained in:
2019-10-22 20:02:57 +02:00
parent 86d9c34cc3
commit 793da3eeaa
2 changed files with 9 additions and 1 deletions

View File

@@ -1,10 +1,14 @@
RewriteEngine On
RewriteBase /
# Redirect old links
RewriteRule ^(en|de)/(.*)$ /$2 [R=301,L]
RewriteRule ^(en|de)/?$ / [R=301,L]
RewriteRule ^about/?$ / [R=301,L]
# Error documents
ErrorDocument 404 /404.html
# Compression
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html

View File

@@ -4,10 +4,14 @@
{{ partial "header" . }}
<div class="container">
<div class="page-not-found">
<h3>Uh oh! Page not found!</h3>
<h1>Four-oh-four</h1>
<h3>Page not found :(</h3>
<h4>Go back to <a href="/">start</a>.</h4>
</div>
</div>
</div>
{{ partial "footer" . }}
{{ partial "js" . }}
{{ partial "matomo" . }}
</body>
</html>