summaryrefslogtreecommitdiff
path: root/handler
diff options
context:
space:
mode:
Diffstat (limited to 'handler')
-rw-r--r--handler/Auto.php2
-rw-r--r--handler/ProjectsHtml.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/handler/Auto.php b/handler/Auto.php
index c0d4c13..9903993 100644
--- a/handler/Auto.php
+++ b/handler/Auto.php
@@ -17,7 +17,7 @@ class Auto extends RequestHandler {
public function get(): Response {
list($name) = $this->input('name');
if ($name == 'coreboot-mba51-flashing')
- return new RedirectResponse('/coreboot-mba52-flashing/');
+ return new RedirectResponse('/coreboot-mba52-flashing/', 301);
if (is_numeric($name)) {
$post = posts::get((int)$name);
diff --git a/handler/ProjectsHtml.php b/handler/ProjectsHtml.php
index beada44..0c1dcbb 100644
--- a/handler/ProjectsHtml.php
+++ b/handler/ProjectsHtml.php
@@ -5,7 +5,7 @@ namespace handler\main;
class ProjectsHtml extends \RequestHandler {
public function get(): \Response {
- return new \RedirectResponse('/projects/');
+ return new \RedirectResponse('/projects/', 301);
}
} \ No newline at end of file