Redirect /docs to the right page
I've hit this a few times where I want to get to docs so I take whatever my urlbar gives me and strip out the actual page so I can get to the root, however that's a 404. This introduces a super easy way to redirect, which could be handy in the future as docs get rewritten. I would much rather do this with a real htaccess file or even just handle 404s gracefully, but that's not currently an option with GitHub pages (since we generate our own and don't use a custom domain).
Paul O’Shannessy committed
Sep 3, 2013 at 13:25 UTC
ba460de7ed36540fd419785fe442b1c8128e9347
2 files changed
+10
docs/_layouts/redirect.html
new
+6
@@ -0,0 +1,6 @@
1
+<html>
2
+<head>
3
+ <meta http-equiv="refresh" content="0; {{ page.destination }}">
4
+</head>
5
+<body></body>
6
+</html>
docs/docs/index.html
new
+4
@@ -0,0 +1,4 @@
1
+---
2
+layout: redirect
3
+destination: getting-started.html
4
+---