From 6252a61d19c95c0609697061912c1149f62b90f9 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 8 Mar 2015 09:27:13 +0100 Subject: [PATCH] Error page --- main/.htaccess | 16 +++++++++++++++- main/404.php | 0 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 main/404.php diff --git a/main/.htaccess b/main/.htaccess index 34dab00..80706d3 100644 --- a/main/.htaccess +++ b/main/.htaccess @@ -1 +1,15 @@ -# Empty .htaccess to make git realise this directory exists \ No newline at end of file +# Block access to every file starting with a dot + + Require all denied + + +# Set Error documents +ErrorDocument 404 /404.php +ErrorDocument 403 /404.php +ErrorDocument 401 /404.php + +# Rewrite Stuff +RewriteEngine on +Options +FollowSymLinks -Indexes + +# Rewrite Rules diff --git a/main/404.php b/main/404.php new file mode 100644 index 0000000..e69de29