commit 5d5c1bfb722bbbe4e66dced9845d5605fdeb9544 parent 13b82e9cc6b786abe2bd022661051bad787360df Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Wed, 30 Jul 2025 19:15:20 +0200 feat: define custom 404 page Diffstat:
M | .htaccess | | | 4 | ++-- |
A | 404.html | | | 35 | +++++++++++++++++++++++++++++++++++ |
2 files changed, 37 insertions(+), 2 deletions(-)
diff --git a/.htaccess b/.htaccess @@ -12,5 +12,5 @@ RedirectMatch 404 ^/.reuse/.*$ RedirectMatch 404 ^/README.md$ RedirectMatch 404 ^/tools/.*$ - - +# Define custom 404 page +ErrorDocument 404 /404.html diff --git a/404.html b/404.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html lang="en"> + + <head> + <meta charset=utf-8> + <meta name=viewport content="width=device-width,initial-scale=1"> + <link rel=icon href=/assets/img/favicon.png type=image/png> + <link rel=icon href=/assets/img/favicon.ico type=x-image/ico> + <link rel=stylesheet href=/assets/css/simple.min.css media=all> + <link rel=stylesheet href=/assets/css/custom.css> + <title>Inhalt nicht gefunden!</title> + </head> + + <body> + + <header> + <nav> + <a href="/"> + Kontra + </a> + <a href="https://src.jayvii.de/pub/kontra/" target="_blank"> + Quellcode + </a> + <a href="mailto:jayvii+kontra [AT] posteo [DOT] de"> + Kontakt + </a> + </nav> + <h1>Fehler: Inhalt nicht gefunden!</h1> + </header> + + <p>Die angeforderte Seite konnte nicht gefunden werden.</p> + + </body> + +</html>