-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
55 lines (51 loc) · 1.94 KB
/
404.html
File metadata and controls
55 lines (51 loc) · 1.94 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Meta Refresh Tag for IMMEDIATE Redirect -->
<!-- Redirects to 'index.html' after 0 seconds. -->
<!-- For GitHub Pages, use the absolute path or just '/' if index.html is at the root -->
<meta http-equiv="refresh" content="0;url=index.html">
<title>Page Not Found - Redirecting...</title>
<meta name="robots" content="noindex, nofollow"> <!-- Important for SEO -->
<style>
body {
background-color: #0D0C1D; /* Match your dark background */
color: #A0A8C0; /* Medium text color for the fallback message */
font-family: 'Poppins', sans-serif, Arial, sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
text-align: center;
padding: 1rem;
}
.redirect-message {
font-size: 1rem;
}
.redirect-message a {
color: #926BFF; /* Your primary light color */
text-decoration: underline;
}
</style>
</head>
<body>
<div class="redirect-message">
<p>If you are not redirected automatically, please <a href="index.html">click here to go to the homepage</a>.</p>
</div>
<script>
// Fallback JavaScript redirect in case meta refresh fails or is disabled.
// This will execute very quickly.
(function() {
var redirectUrl = 'index.html'; // Ensure this path is correct
// Attempt to redirect almost immediately.
// The meta refresh should ideally handle it even faster.
setTimeout(function() {
window.location.replace(redirectUrl); // Use replace to avoid adding 404 to history
}, 100); // 100ms delay, very short
})();
</script>
</body>
</html>