404 page
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user