-
Notifications
You must be signed in to change notification settings - Fork 4
/
.htaccess
137 lines (113 loc) · 4.86 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#####
#Force non-www in a Generic Way
#####
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.
RewriteCond %{HTTPS}s ^on(s)|off
RewriteCond http%1://%{HTTP_HOST} ^(https?://)(www\.)?(.+)$
RewriteRule ^ %1%3%{REQUEST_URI} [R=301,L]
#####
#Remove Trailing Slash
#####
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [R=301,L]
#####
#Alias PHP URLs
#####
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^.]+)$ $1.html [NC,L]
#####
#Alternate default index pages
#####
DirectoryIndex first.html index.htm index.html index.php
#####
#Disable Directory Browsing
#####
Options All -Indexes
#####
#Compress Text Files
#####
<IfModule mod_deflate.c>
# Force compression for mangled headers.
# https://developer.yahoo.com/blogs/ydn/pushing-beyond-gzipping-25601.html
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
# Compress all output labeled with one of the following MIME-types
# (for Apache versions below 2.3.7, you don't need to enable `mod_filter`
# and can remove the `<IfModule mod_filter.c>` and `</IfModule>` lines
# as `AddOutputFilterByType` is still in the core directives).
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE application/atom+xml \
application/javascript \
application/json \
application/rss+xml \
application/vnd.ms-fontobject \
application/x-font-ttf \
application/x-web-app-manifest+json \
application/xhtml+xml \
application/xml \
font/opentype \
image/svg+xml \
image/x-icon \
text/css \
text/html \
text/plain \
text/x-component \
text/xml
</IfModule>
</IfModule>
#####
#Cache Control
#####
<ifModule mod_headers.c>
# One month for image files, css, and js
<filesMatch ".(jpg|jpeg|jfif|png|gif|ico|webp|css|js)$">
Header set Cache-Control "max-age=2628000, public"
</filesMatch>
# One hour for html, pdf, xml, and txt
<filesMatch ".(html|htm|pdf|xml|txt)$">
Header set Cache-Control "max-age=600, public"
</filesMatch>
# No cache for php
<filesMatch ".(php)$">
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</filesMatch>
</ifModule>
#####
#Redirects
#####
ErrorDocument 404 /404/index.html
ErrorDocument 403 /403/index.html
Redirect /Trading-Post https://squareup.com/store/unami-lodge-one
Redirect /trading-post https://squareup.com/store/unami-lodge-one
Redirect /tradingpost https://squareup.com/store/unami-lodge-one
Redirect /Store https://squareup.com/store/unami-lodge-one
Redirect /store https://squareup.com/store/unami-lodge-one
Redirect /ue /unitelections
Redirect /adultnominations https://docs.google.com/forms/d/e/1FAIpQLSc0PjhMStR5QEJPzJfdmIZrCsfOOllB83N7NOc_Qqjy1zulcw/viewform?usp=send_form
Redirect /AdultNominations https://docs.google.com/forms/d/e/1FAIpQLSc0PjhMStR5QEJPzJfdmIZrCsfOOllB83N7NOc_Qqjy1zulcw/viewform?usp=send_form
Redirect /lldsurvey https://docs.google.com/forms/d/1hox9Hvd39fUVuhEYT3iF70HyPl1qdeqh-9KA-FbMq8M/viewform?usp=send_form
Redirect /conclave https://conclaveregistration.org/section/ne5
Redirect /Conclave https://conclaveregistration.org/section/ne5
Redirect /InterestSurvey https://docs.google.com/forms/d/1-9Q1EYtRr4SbrYX39T_fn7gjo3EK58W5VGXI79wfYlU/viewform?usp=send_form
Redirect /interestsurvey https://docs.google.com/forms/d/1-9Q1EYtRr4SbrYX39T_fn7gjo3EK58W5VGXI79wfYlU/viewform?usp=send_form
Redirect /Interest-Survey https://docs.google.com/forms/d/1-9Q1EYtRr4SbrYX39T_fn7gjo3EK58W5VGXI79wfYlU/viewform?usp=send_form
Redirect /show /news/2024-Scout-Memorabilia-Show
Redirect /dinner https://colbsa.doubleknot.com/event/106th-annual-dinner/2871521
Redirect /trivia https://scoutingevent.com/525-57562
Redirect /coronavirus /news/Response-to-COVID-19
Redirect /covid19 /news/Response-to-COVID-19
Redirect /ldd /lld
Redirect /news/Hart-Grounds-Revitalization-Kickoff https://unami-lodge-one.square.site/product/revitalize-the-hart-ceremonial-grounds/217
Redirect /news/106th-Lodge-Dinner https://colbsa.doubleknot.com/event/106th-annual-dinner/2871521
Redirect /p https://photos.app.goo.gl/g2dTnHrEy7S3ZE7q6