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