From b939cefb694d9eabb6cf6220efa5a32680b2fd7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Thu, 26 Dec 2019 19:04:05 +0100 Subject: [PATCH] centralized htaccess --- .htaccess | 14 ++++++++++++-- app/.htaccess | 1 - data/.htaccess | 2 -- data/logs/.gitkeep | 0 data/logs/.htaccess | 1 - 5 files changed, 12 insertions(+), 6 deletions(-) mode change 100644 => 100755 .htaccess delete mode 100644 app/.htaccess delete mode 100644 data/.htaccess delete mode 100644 data/logs/.gitkeep delete mode 100644 data/logs/.htaccess diff --git a/.htaccess b/.htaccess old mode 100644 new mode 100755 index 8360226..08d7bb2 --- a/.htaccess +++ b/.htaccess @@ -1,4 +1,14 @@ - +RewriteEngine on + +RewriteRule ^app/?.*$ - [F,L] +RewriteRule ^data/logs/?.*$ - [F,L] + + Order Allow,Deny Deny from All - \ No newline at end of file + + + + Order Allow,Deny + Deny from All + diff --git a/app/.htaccess b/app/.htaccess deleted file mode 100644 index 3418e55..0000000 --- a/app/.htaccess +++ /dev/null @@ -1 +0,0 @@ -deny from all \ No newline at end of file diff --git a/data/.htaccess b/data/.htaccess deleted file mode 100644 index dba9758..0000000 --- a/data/.htaccess +++ /dev/null @@ -1,2 +0,0 @@ -Order Allow,Deny -Deny from All \ No newline at end of file diff --git a/data/logs/.gitkeep b/data/logs/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/data/logs/.htaccess b/data/logs/.htaccess deleted file mode 100644 index 3418e55..0000000 --- a/data/logs/.htaccess +++ /dev/null @@ -1 +0,0 @@ -deny from all \ No newline at end of file