Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit d808c18

Browse files
author
Barrie Hadfield
committed
301 vs 404
1 parent 9cd1a68 commit d808c18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<title>React for GitHub Pages</title>
5+
<title>Hyperloop Website</title>
66
</head>
77
<body>
88
<script type="text/javascript">

rack-custom_404.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def call(env)
99
status_code, headers, body = app.call(env)
1010

1111
if status_code == 404
12-
[404, { "Content-Type" => "text/html" }, [html_body]]
12+
[301, { "Content-Type" => "text/html" }, [html_body]]
1313
else
1414
[status_code, headers, body]
1515
end

0 commit comments

Comments
 (0)