diff --git a/.htaccess b/.htaccess index 6f220f45c4..f3c82b3165 100644 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,10 @@ + + Header set Cache-Control "no-cache, no-store, must-revalidate" + Header set Pragma "no-cache" + Header set Expires 0 + + RedirectMatch 404 \.conf$ RedirectMatch 404 \.ini$ RedirectMatch 404 \.py$ +ErrorDocument 404 /openWB/web/error.html diff --git a/web/error.css b/web/error.css new file mode 100644 index 0000000000..d3a9529670 --- /dev/null +++ b/web/error.css @@ -0,0 +1,39 @@ +/* prevent scroll gestures */ +body, +html { + overscroll-behavior: none; +} + +body, +html { + border: 0; + margin: 0; + padding: 0; + background-color: black; + color: white; + font-family: Open Sans; +} + +a { + color: inherit; + text-decoration: underline; + font-weight: bold; +} + +.wrapper { + display: flex; + justify-content: center; +} + +#notReady { + display: flex; + flex-direction: column; + padding-top: 10vh; +} + +#logo { + display: flex; + flex-direction: column; + align-content: center; + flex-wrap: wrap; +} diff --git a/web/error.html b/web/error.html new file mode 100644 index 0000000000..b4ebe2aaaa --- /dev/null +++ b/web/error.html @@ -0,0 +1,44 @@ + + + + + + + + + 404 - document not found + + + +
+
+ +
+

Fehler 404: Die aufgerufene Seite wurde nicht gefunden.

+

Bitte aktualisiere ggf. Deine Lesezeichen.

+

+ Die Startseite erreichst Du unter + http://[meine-openWB]/. +

+

+ Direkter Zugriff auf die Einstellungen: + http://[meine-openWB]/openWB/web/settings/ +

+
+
+
+ + + + +