summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.htaccess8
-rw-r--r--app/.htaccess8
-rw-r--r--data/.htaccess8
-rw-r--r--doc/.htaccess8
-rw-r--r--tests/.htaccess8
5 files changed, 35 insertions, 5 deletions
diff --git a/.htaccess b/.htaccess
index d17e5c80..9a552944 100644
--- a/.htaccess
+++ b/.htaccess
@@ -9,5 +9,11 @@
</IfModule>
<FilesMatch "(kanboard|config.php|config.default.php)">
- Deny from all
+ <IfVersion >= 2.3>
+ Require all denied
+ </IfVersion>
+ <IfVersion < 2.3>
+ Order allow,deny
+ Deny from all
+ </IfVersion>
</FilesMatch>
diff --git a/app/.htaccess b/app/.htaccess
index 14249c50..c47998cb 100644
--- a/app/.htaccess
+++ b/app/.htaccess
@@ -1 +1,7 @@
-Deny from all \ No newline at end of file
+<IfVersion >= 2.3>
+ Require all denied
+</IfVersion>
+<IfVersion < 2.3>
+ Order allow,deny
+ Deny from all
+</IfVersion>
diff --git a/data/.htaccess b/data/.htaccess
index 14249c50..c47998cb 100644
--- a/data/.htaccess
+++ b/data/.htaccess
@@ -1 +1,7 @@
-Deny from all \ No newline at end of file
+<IfVersion >= 2.3>
+ Require all denied
+</IfVersion>
+<IfVersion < 2.3>
+ Order allow,deny
+ Deny from all
+</IfVersion>
diff --git a/doc/.htaccess b/doc/.htaccess
index 14249c50..c47998cb 100644
--- a/doc/.htaccess
+++ b/doc/.htaccess
@@ -1 +1,7 @@
-Deny from all \ No newline at end of file
+<IfVersion >= 2.3>
+ Require all denied
+</IfVersion>
+<IfVersion < 2.3>
+ Order allow,deny
+ Deny from all
+</IfVersion>
diff --git a/tests/.htaccess b/tests/.htaccess
index 14249c50..c47998cb 100644
--- a/tests/.htaccess
+++ b/tests/.htaccess
@@ -1 +1,7 @@
-Deny from all \ No newline at end of file
+<IfVersion >= 2.3>
+ Require all denied
+</IfVersion>
+<IfVersion < 2.3>
+ Order allow,deny
+ Deny from all
+</IfVersion>