-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path404.html
More file actions
28 lines (25 loc) · 948 Bytes
/
404.html
File metadata and controls
28 lines (25 loc) · 948 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Xelo – redirecting…</title>
<script>
// Redirect /Xelo/... → /xelo/... (case-insensitive, preserves deep links)
// Also handles bare /xelo → /xelo/docs/
var path = window.location.pathname;
var lower = path.toLowerCase();
if (lower !== path && lower.indexOf('/xelo') === 0) {
// e.g. /Xelo/docs/getting-started → /xelo/docs/getting-started
window.location.replace(lower + window.location.search + window.location.hash);
} else if (lower === '/xelo' || lower === '/xelo/') {
window.location.replace('/xelo/docs/');
} else {
window.location.replace('/xelo/docs/');
}
</script>
<meta http-equiv="refresh" content="0; url=/xelo/docs/">
</head>
<body>
<p>Page not found. Redirecting to <a href="/xelo/docs/">Xelo docs</a>…</p>
</body>
</html>