forked from DIVD-NL/web-csirt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
84 lines (67 loc) · 2.87 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
RewriteEngine On
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"
# Redirect http -> https
RewriteCond %{HTTP:X-HTTPS-SESSION} !^yes$
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
SetEnvIfNoCase X-HTTPS-Session Yes is_ssl=yes
SetEnvIfNoCase X-HTTPS-Session Yes is_https=yes
SetEnvIfNoCase X-HTTPS-Session Yes HTTPS=on
# recirect divd.nl to www
RewriteCond %{HTTP_HOST} ^divd\.nl [NC]
RewriteRule (.*) https://www.divd.nl/$1 [r=301,L]
# Serve www from divd-nl
RewriteCond %{HTTP_HOST} ^www\.divd\.nl [NC]
RewriteCond %{REQUEST_URI} !^/divd-nl [NC]
RewriteRule (.*) divd-nl/$1 [L]
# Redirect when I summon a directory without a trailing slash
RewriteCond %{HTTP_HOST} ^www\.divd\.nl [NC]
RewriteCond %{REQUEST_URI} ^/divd-nl.*[^/]$ [NC]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^divd-nl/(.*) /$1/ [L,r=301]
# Serve csirt from csirt-divd-nl
RewriteCond %{HTTP_HOST} ^csirt\.divd\.nl [NC]
RewriteCond %{REQUEST_URI} !^/csirt-divd-nl [NC]
RewriteRule (.*) csirt-divd-nl/$1 [L]
# Redirect when I summon a directory without a trailing slash
RewriteCond %{HTTP_HOST} ^csirt\.divd\.nl [NC]
RewriteCond %{REQUEST_URI} ^/csirt-divd-nl.*[^/]$ [NC]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^csirt-divd-nl/(.*) /$1/ [L,r=301]
# recirect divd.club to www
RewriteCond %{HTTP_HOST} ^divd\.club [NC]
RewriteRule (.*) https://www.divd.club/$1 [r=301,L]
# Serve divd.club from divd-club
RewriteCond %{HTTP_HOST} ^www\.divd\.club [NC]
RewriteCond %{REQUEST_URI} !^/divd-club [NC]
RewriteRule (.*) divd-club/$1 [L]
# Redirect when I summon a directory without a trailing slash
RewriteCond %{HTTP_HOST} ^www\.divd\.club [NC]
RewriteCond %{REQUEST_URI} ^/divd-club.*[^/]$ [NC]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^divd-club/(.*) /$1/ [L,r=301]
# cyber-wear.nl
# recirect cyber-wear.nl to www
RewriteCond %{HTTP_HOST} ^cyber-wear\.nl [NC]
RewriteRule (.*) https://www.cyber-wear.nl/$1 [r=301,L]
# Serve cyber-wear.nl from cyber-wear-nl
RewriteCond %{HTTP_HOST} ^www\.cyber-wear\.nl [NC]
RewriteCond %{REQUEST_URI} !^/cyber-wear-nl [NC]
RewriteRule (.*) cyber-wear-nl/$1 [L]
# Redirect when I summon a directory without a trailing slash
RewriteCond %{HTTP_HOST} ^www\.cyber-wear\.nl [NC]
RewriteCond %{REQUEST_URI} ^/cyber-wear-nl.*[^/]$ [NC]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^cyber-wear-nl/(.*) /$1/ [L,r=301]
# divd.fund
# recirect divd.fund to www
RewriteCond %{HTTP_HOST} ^divd\.fund [NC]
RewriteRule (.*) https://www.divd.fund/$1 [r=301,L]
# Serve divd.fund from divd.fund
RewriteCond %{HTTP_HOST} ^www\.divd\.fund [NC]
RewriteCond %{REQUEST_URI} !^/divd.fund [NC]
RewriteRule (.*) divd.fund/$1 [L]
# Redirect when I summon a directory without a trailing slash
RewriteCond %{HTTP_HOST} ^www\.divd\.fund [NC]
RewriteCond %{REQUEST_URI} ^/divd\.fund.*[^/]$ [NC]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^divd.fund/(.*) /$1/ [L,r=301]