2020-07-28 23:04:51 +02:00
|
|
|
# Prevent viewing of htaccess file.
|
|
|
|
<Files .htaccess>
|
|
|
|
order allow,deny
|
|
|
|
deny from all
|
|
|
|
</Files>
|
|
|
|
# Prevent directory listings
|
|
|
|
Options All -Indexes
|
2020-07-18 02:22:53 +02:00
|
|
|
ErrorDocument 404 /404.html
|
2020-07-28 23:04:51 +02:00
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{HTTP:X-Forwarded-Proto} !https [OR]
|
|
|
|
RewriteCond %{HTTP_HOST} ^astrolabe\.coop [NC]
|
|
|
|
RewriteRule ^ https://www.astrolabe.coop%{REQUEST_URI} [L,NE,R=301]
|