.htaccess 250 Bytes
Newer Older
Romain Casati's avatar
Romain Casati committed
1
2
3
4
5
6
7
8
9
10
11
12
# redirect to https
RewriteEngine on

RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# ignoring .git folder
RewriteRule ^(?:.git)\b.* - [R=404]

# prevent from listing directories
Options -Indexes
IndexIgnore *