-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
47 lines (42 loc) · 1.16 KB
/
404.html
File metadata and controls
47 lines (42 loc) · 1.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Redirecting...</title>
<style>
body {
background: #000;
color: #666;
font-family: system-ui, sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
</style>
<script>
(function () {
// Map old paths to new hash routes
const pathMap = {
'/imac-g4': '#/project/imac-g4',
'/imac-g4.html': '#/project/imac-g4',
'/imac-revival': '#/project/imac-revival',
'/imac-revival.html': '#/project/imac-revival'
};
const path = location.pathname;
const newHash = pathMap[path];
if (newHash) {
// Redirect to home with appropriate hash
location.replace('/' + newHash);
} else {
// Unknown path - redirect to home
location.replace('/');
}
})();
</script>
</head>
<body>
<p>Redirecting...</p>
</body>
</html>