diff --git a/data/.htaccess b/data/.htaccess
index 14249c50b..89682e1f9 100644
--- a/data/.htaccess
+++ b/data/.htaccess
@@ -1 +1,13 @@
-Deny from all
\ No newline at end of file
+# Apache 2.4
+
+Require all denied
+
+
+# Apache 2.2
+
+deny from all
+Satisfy All
+
+
+# Apache 2.2 and 2.4
+IndexIgnore *
diff --git a/log/.htaccess b/log/.htaccess
index 14249c50b..89682e1f9 100644
--- a/log/.htaccess
+++ b/log/.htaccess
@@ -1 +1,13 @@
-Deny from all
\ No newline at end of file
+# Apache 2.4
+
+Require all denied
+
+
+# Apache 2.2
+
+deny from all
+Satisfy All
+
+
+# Apache 2.2 and 2.4
+IndexIgnore *