2020-07-28 23:04:51 +02:00
|
|
|
# Prevent viewing of htaccess file.
|
|
|
|
<Files .htaccess>
|
2024-03-20 10:51:18 +01:00
|
|
|
<IfModule mod_access_compat.c>
|
|
|
|
Order Allow,Deny
|
|
|
|
Deny from all
|
|
|
|
</IfModule>
|
2020-07-28 23:04:51 +02:00
|
|
|
</Files>
|
|
|
|
# Prevent directory listings
|
|
|
|
Options All -Indexes
|
2020-07-18 02:22:53 +02:00
|
|
|
ErrorDocument 404 /404.html
|
2024-03-20 10:51:18 +01:00
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
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]
|
|
|
|
</IfModule>
|