From c1221aef4bff55d83e8d73d7c2b03819294a409d Mon Sep 17 00:00:00 2001 From: J'informatique Date: Thu, 4 Jan 2018 12:29:33 +0100 Subject: [PATCH] create .htaccess file - To force HTTPS - To hide directory listing - To prevent access to .env and other files --- .htaccess | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000000..1b80a6b43d --- /dev/null +++ b/.htaccess @@ -0,0 +1,12 @@ +# To force HTTPS +RewriteEngine On +RewriteCond %{HTTPS} off +RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] + +# To hide directory listing +Options All -Indexes + +# To prevent access to .env and other files + + Deny from all +