From 17785b8d277a0c51c7f9b4bf8819e113cc0bd515 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 21 Jun 2020 00:35:21 +0200 Subject: [PATCH] Fix redirect --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 2675106..0750971 100644 --- a/index.php +++ b/index.php @@ -130,7 +130,7 @@ if ($match['name'] == 'notes') { // If we are dealing with a post (old format) if (($match['name'] == 'blog_post') || ($match['name'] == 'notes_post')) { - header('Location: '.$_SERVER['SERVER_NAME'].$match['params']['slug']); + header('Location: https://yarmo.eu/post/'.$match['params']['slug']); } // If we are dealing with a post