fix(htaccess): check if module activated
This commit is contained in:
parent
0806f09b4c
commit
b3b5ee6377
@ -1,12 +1,16 @@
|
|||||||
# Prevent viewing of htaccess file.
|
# Prevent viewing of htaccess file.
|
||||||
<Files .htaccess>
|
<Files .htaccess>
|
||||||
order allow,deny
|
<IfModule mod_access_compat.c>
|
||||||
deny from all
|
Order Allow,Deny
|
||||||
|
Deny from all
|
||||||
|
</IfModule>
|
||||||
</Files>
|
</Files>
|
||||||
# Prevent directory listings
|
# Prevent directory listings
|
||||||
Options All -Indexes
|
Options All -Indexes
|
||||||
ErrorDocument 404 /404.html
|
ErrorDocument 404 /404.html
|
||||||
RewriteEngine On
|
<IfModule mod_rewrite.c>
|
||||||
RewriteCond %{HTTP:X-Forwarded-Proto} !https [OR]
|
RewriteEngine On
|
||||||
RewriteCond %{HTTP_HOST} ^astrolabe\.coop [NC]
|
RewriteCond %{HTTP:X-Forwarded-Proto} !https [OR]
|
||||||
RewriteRule ^ https://www.astrolabe.coop%{REQUEST_URI} [L,NE,R=301]
|
RewriteCond %{HTTP_HOST} ^astrolabe\.coop [NC]
|
||||||
|
RewriteRule ^ https://www.astrolabe.coop%{REQUEST_URI} [L,NE,R=301]
|
||||||
|
</IfModule>
|
||||||
|
Loading…
Reference in New Issue
Block a user