mirror of
https://github.com/DidiDidi129/Website.git
synced 2026-04-05 12:04:38 +00:00
Create 404.html
This commit is contained in:
23
404.html
Normal file
23
404.html
Normal 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 there’s 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>
|
||||||
Reference in New Issue
Block a user