Skip to content

Commit 665a31e

Browse files
Merge pull request #59 from OSSPhilippines/redirects
fix: redirect broken or unknown URLs to homepage via 404 fallback
2 parents 5a7b095 + cd371d3 commit 665a31e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

public/404.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>Redirecting...</title>
6+
<meta http-equiv="refresh" content="0; url=/" />
7+
<script>
8+
// Fallback for browsers that don't honor meta refresh
9+
window.location.replace('/');
10+
</script>
11+
</head>
12+
<body>
13+
<p>Redirecting to homepage...</p>
14+
</body>
15+
</html>

0 commit comments

Comments
 (0)