Merge pull request #1093 from jinformatique/patch-1

create .htaccess file
This commit is contained in:
James Cole 2018-01-06 10:10:41 +01:00 committed by GitHub
commit f13f378d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
.htaccess Normal file
View File

@ -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
<Files .*>
Deny from all
</Files>