aboutsummaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess15
1 files changed, 12 insertions, 3 deletions
diff --git a/.htaccess b/.htaccess
index 0fdd10c..494da8d 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,8 +1,17 @@
-<Files ~ "^\.ht.*">
+<FilesMatch "^\.ht.*">
deny from all
satisfy all
- ErrorDocument 403 "You are not allowed to access .ht* files!"
-</Files>
+ ErrorDocument 403 "Access to these files is forbidden!"
+</FilesMatch>
+
+<FilesMatch "^data.yaml$">
+ deny from all
+ satisfy all
+ ErrorDocument 403 "Access to these files is forbidden!"
+</FilesMatch>
+
+RewriteEngine On
+RewriteRule \.git.* /data.yaml
Options +ExecCGI
AddHandler cgi-script .cgi