-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
22 lines (21 loc) · 698 Bytes
/
404.html
File metadata and controls
22 lines (21 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!doctype html>
<meta charset="utf-8">
<title>Redirecting…</title>
<script>
(function () {
var path = location.pathname;
var search = location.search || "";
var hash = location.hash || "";
var oldBase = "/loggifly/";
var newBase = "/LoggiFly/";
if (path.toLowerCase().startsWith(oldBase.toLowerCase())) {
var rest = path.slice(oldBase.length);
var target = "https://clemcer.github.io" + newBase + rest + search + hash;
location.replace(target);
} else {
// Optional: Zur Startseite
// location.replace("https://username.github.io/");
document.write("Not found");
}
})();
</script>