diff --git a/.htaccess b/.htaccess index bf7ee9cf9..92656d2c3 100644 --- a/.htaccess +++ b/.htaccess @@ -1,6 +1,20 @@ +# Very simple security for apache webserver - do not remove. +# # Restrict access to DotFiles (like .htaccess, .env, .gitignore....) -# Do not remove if you are running Apache web server. Order allow,deny Deny from all + +# Restrict access to system files + + Order allow,deny + Deny from all + + +# Uncomment to restrict access to release text files +# +# Order allow,deny +# Deny from all +# + diff --git a/public/.htaccess b/public/.htaccess index e2ed529bd..e678ac5b2 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -4,7 +4,7 @@ RewriteEngine On - + # Redirect Trailing Slashes... RewriteRule ^(.*)/$ /$1 [L,R=301] @@ -15,8 +15,20 @@ # Restrict access to DotFiles (like .htaccess, .env, .gitignore....) -# Do not remove if you are running Apache web server. Order allow,deny Deny from all + +# Restrict access to system files + + Order allow,deny + Deny from all + + +# Uncomment to restrict access to release text files +# +# Order allow,deny +# Deny from all +# +