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 - Page not found
+Click here to go to main page
+