forked from rodbitkite/bitcoinpark.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
58 lines (53 loc) · 1.91 KB
/
Copy path404.html
File metadata and controls
58 lines (53 loc) · 1.91 KB
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
<script>
// Get the current pathname
const currentPath = window.location.pathname.toLowerCase();
// Define internal redirects
const redirects = {
'/imagineif': '/imagineif/',
'/imagineif/': '/imagineif/',
'/imagineif.html': '/imagineif/',
'/imagineif/index_imagineif.html': '/imagineif/',
'/custody-treasury': '/custody-treasury/custody-treasury-summit.html',
'/opdaily': '/opdaily.html',
'/custody': '/custody.html',
'/pay': '/pay.html',
'/september': '/september.html',
'/ark': '/ark.html',
'/nacc': '/nacc.html',
'/ten31': '/ten31.html',
'/foundry': '/foundry.html',
'/unchained': '/unchained.html',
'/cholla': '/cholla.html',
'/blockstream': '/blockstream.html',
'/clsk': '/clsk.html',
'/cleanspark': '/cleanspark.html',
'/satoshipacioli': '/satoshipacioli.html',
'/sp': '/sp.html',
'/if': '/if.html',
'/IF': '/if.html',
'/cts': '/cts.html',
'/bestday': '/bestday.html',
'/nems26ticket': '/nems26ticket.html',
'/nems26': '/nems26.html',
'/schedule': '/imagineif/if-schedule.html',
'/custody-whitepaper': '/custody-whitepaper.html',
'/apply': '/apply.html',
};
// Check if there's a match in the redirects object
if (redirects[currentPath]) {
window.location.href = redirects[currentPath];
return;
}
// Handle case-insensitive imagineif variations
if (currentPath.includes('imagineif')) {
window.location.href = '/imagineif/';
return;
}
// Handle case-insensitive custody-treasury variations
if (currentPath.includes('custody-treasury')) {
window.location.href = '/custody-treasury/custody-treasury-summit.html';
return;
}
// If no redirect found, go to home page
window.location.href = '/';
</script>