From d0b479f70e5c83af0c0ca7f3b2186c251f7a3037 Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Tue, 10 Nov 2020 17:02:20 +0100 Subject: [PATCH] Added 404 page --- .htaccess | 4 +++- 404.css | 21 +++++++++++++++++++++ 404.html | 27 +++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 404.css create mode 100644 404.html diff --git a/.htaccess b/.htaccess index c6d2899..f6cd56b 100644 --- a/.htaccess +++ b/.htaccess @@ -12,4 +12,6 @@ RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html [NC,L] RewriteCond %{REQUEST_FILENAME}\.php -f -RewriteRule ^(.*)$ $1.php [NC,L] \ No newline at end of file +RewriteRule ^(.*)$ $1.php [NC,L] + +ErrorDocument 404 ./404 \ No newline at end of file diff --git a/404.css b/404.css new file mode 100644 index 0000000..81b7f32 --- /dev/null +++ b/404.css @@ -0,0 +1,21 @@ +div.container { + height: 10em; + position: relative; +} +div.container p { + margin: 0; + position: absolute; + top: 50%; + left: 50%; + margin-right: -50%; + transform: translate(-50%, -50%); + color: white; + font-size: 5vw; + font-family: "Inconsolata", monospace; + text-align: center; + width: auto; +} + +body { + background-color: black; +} diff --git a/404.html b/404.html new file mode 100644 index 0000000..893503e --- /dev/null +++ b/404.html @@ -0,0 +1,27 @@ + + + + + + + + + + Error 404 - Not found + + + + + + + +
+

Error 404 - Page not found

+

Click here to go to main page

+
+
+ +