Skip to content

Commit 9a2a25c

Browse files
authored
Create 404.html
1 parent 34450c1 commit 9a2a25c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

404.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Redirecting...</title>
6+
<script>
7+
// 获取当前路径
8+
const path = window.location.pathname;
9+
10+
// 如果路径不是 /openapi,则重定向
11+
if (path !== "/openapi/") {
12+
window.location.replace("/openapi/");
13+
}
14+
</script>
15+
<meta http-equiv="refresh" content="0; url=/openapi/" />
16+
</head>
17+
<body>
18+
<p>If you are not redirected, <a href="/openapi/">click here</a>.</p>
19+
</body>
20+
</html>

0 commit comments

Comments
 (0)