forked from sovenor/bitcoin-rocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtaccess-example.txt
37 lines (33 loc) · 1.6 KB
/
htaccess-example.txt
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
<If "%{REQUEST_URI} =~ m#^/.well-known/#">
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Headers "*"
Header always set Access-Control-Allow-Methods "GET, OPTIONS"
</If>
RewriteEngine on
# Add .html extension silently (internal redirect) to avoid displaying .html in the browser
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
# Redirects with NC flag for case-insensitivity (these are old redirects from links that are no longer shared but still need to work despite the language redirects above)
RewriteRule ^orange-pill-pack$ /stickers [R=301,NC,L]
RewriteRule ^sticker$ /stickers [R=301,NC,L]
RewriteRule ^bitcoin-stickers$ /stickers [R=301,NC,L]
RewriteRule ^opp$ /stickers [R=301,NC,L]
RewriteRule ^gold$ /bitcoin-vs-gold [R=301,NC,L]
RewriteRule ^cbdc$ /bitcoin-vs-cbdc [R=301,NC,L]
RewriteRule ^CBDC$ /bitcoin-vs-cbdc [R=301,NC,L]
RewriteRule ^INFLATION$ /inflation [R=301,NC,L]
RewriteRule ^bank-run$ /bank-runs [R=301,NC,L]
RewriteRule ^bankrun$ /bank-runs [R=301,NC,L]
RewriteRule ^bankruns$ /bank-runs [R=301,NC,L]
RewriteRule ^wallet$ /wallets [R=301,NC,L]
RewriteRule ^postcard$ /postcards [R=301,NC,L]
RewriteRule ^guide$ /business/guide [R=301,NC,L]
RewriteRule ^guides$ /business/guide [R=301,NC,L]
RewriteRule ^business/guides$ /business/guide [R=301,NC,L]
RewriteRule ^kit$ /business/kit [R=301,NC,L]
RewriteRule ^business-kit$ /business/kit [R=301,NC,L]
RewriteRule ^businesskit$ /business/kit [R=301,NC,L]
RewriteRule ^Lightning$ /lightning [R=301,NC,L]
# 404 page for broken links
ErrorDocument 404 /404.html