diff --git a/docs/www/.htaccess b/docs/www/.htaccess index c78f08e..2ded313 100644 --- a/docs/www/.htaccess +++ b/docs/www/.htaccess @@ -11,3 +11,9 @@ RewriteRule ^(.*)$ $1/ [R=301,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^([^\.]+)/$ $1.php + +# Custom error pages +ErrorDocument 403 /errors/403.php +ErrorDocument 404 /errors/404.php +ErrorDocument 500 /errors/500.php +ErrorDocument 503 /errors/503.php diff --git a/docs/www/errors/403.php b/docs/www/errors/403.php new file mode 100644 index 0000000..545800e --- /dev/null +++ b/docs/www/errors/403.php @@ -0,0 +1,17 @@ + + +
+

403: Forbidden

+
+Internet meme image of a confused-looking cat with a text reading "Hey you... What are you doing here??" +
+
+ + diff --git a/docs/www/errors/404.php b/docs/www/errors/404.php new file mode 100644 index 0000000..9a52f06 --- /dev/null +++ b/docs/www/errors/404.php @@ -0,0 +1,17 @@ + + +
+

404: Not Found

+
+GIF of a cat hiding in a cupboard +
+
+ + diff --git a/docs/www/errors/500.php b/docs/www/errors/500.php new file mode 100644 index 0000000..df811b6 --- /dev/null +++ b/docs/www/errors/500.php @@ -0,0 +1,17 @@ + + +
+

500: Internal Server Error

+
+GIF of a very confused cat. +
+
+ + diff --git a/docs/www/errors/503.php b/docs/www/errors/503.php new file mode 100644 index 0000000..7d102de --- /dev/null +++ b/docs/www/errors/503.php @@ -0,0 +1,17 @@ + + +
+

503: Service Unavailable

+
+GIF of a cat going to work in a cardboard box. +
+
+ +