Create 404.html

This commit is contained in:
DidiDidi129
2025-09-05 23:57:40 +09:30
parent 5c634d9f71
commit 1046abf315

23
404.html Normal file
View File

@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Redirecting...</title>
<script>
// Get the current path, remove leading slash
const path = window.location.pathname.slice(1);
// Redirect to /#path if theres a path
if (path) {
window.location.replace('/#' + path);
} else {
// fallback to home
window.location.replace('/');
}
</script>
</head>
<body>
<p>Redirecting...</p>
<p>If you are not redirected automatically, <a id="fallback" href="/">click here</a>.</p>
</body>
</html>