diff --git a/.htaccess b/.htaccess
index 006074f2ea..952bdc1f4a 100644
--- a/.htaccess
+++ b/.htaccess
@@ -8,7 +8,5 @@
# To hide directory listing
Options All -Indexes
-# To prevent access to .env and other files
-
- Deny from all
-
+# To prevent access any file
+Deny from all
diff --git a/public/.htaccess b/public/.htaccess
index 09683488bd..7e00f5b6ad 100644
--- a/public/.htaccess
+++ b/public/.htaccess
@@ -1,3 +1,4 @@
+Allow from all
Options -MultiViews