-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
30 lines (20 loc) · 834 Bytes
/
404.html
File metadata and controls
30 lines (20 loc) · 834 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
<html>
<head>
<script>
sessionStorage.redirect = location.href;
</script>
<meta http-equiv="refresh" content="0;URL='/'">
</head>
<body>
<!--
Single Page App redirection for Github Pages
The script in the <head> element sets the attempted entrance URL to a variable
on the standard sessionStorage object and immediately redirects to your project’s
index.html page using a meta refresh tag. If you’re doing a Github Organization
site, don’t put a repo name in the content attribute replacer text, just do this: content="0;URL='/'"
There is a companion script in the <head> of index.html that updates history.
Note: this 404.html page must be greater than 512 bytes or it will not work in IE.
Reference: https://www.smashingmagazine.com/2016/08/sghpa-single-page-app-hack-github-pages/
-->
</body>
</html>