404 page
This commit is contained in:
@@ -1,10 +1,14 @@
|
|||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteBase /
|
RewriteBase /
|
||||||
|
|
||||||
|
# Redirect old links
|
||||||
RewriteRule ^(en|de)/(.*)$ /$2 [R=301,L]
|
RewriteRule ^(en|de)/(.*)$ /$2 [R=301,L]
|
||||||
RewriteRule ^(en|de)/?$ / [R=301,L]
|
RewriteRule ^(en|de)/?$ / [R=301,L]
|
||||||
RewriteRule ^about/?$ / [R=301,L]
|
RewriteRule ^about/?$ / [R=301,L]
|
||||||
|
|
||||||
|
# Error documents
|
||||||
|
ErrorDocument 404 /404.html
|
||||||
|
|
||||||
# Compression
|
# Compression
|
||||||
AddOutputFilterByType DEFLATE text/plain
|
AddOutputFilterByType DEFLATE text/plain
|
||||||
AddOutputFilterByType DEFLATE text/html
|
AddOutputFilterByType DEFLATE text/html
|
||||||
|
|||||||
@@ -4,10 +4,14 @@
|
|||||||
{{ partial "header" . }}
|
{{ partial "header" . }}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="page-not-found">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ partial "footer" . }}
|
{{ partial "footer" . }}
|
||||||
|
{{ partial "js" . }}
|
||||||
|
{{ partial "matomo" . }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user