Browse Source

404 page

new-gallery
max.mehl 2 years ago
parent
commit
793da3eeaa
Signed by: mxmehl GPG Key ID: 2704E4AB371E2E92
  1. 4
      static/.htaccess
  2. 6
      themes/hugo-sustain/layouts/404.html

4
static/.htaccess

@ -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

6
themes/hugo-sustain/layouts/404.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>

Loading…
Cancel
Save