From 1590a179fa37fb8157f5a89639c776034322f13f Mon Sep 17 00:00:00 2001 From: raincoats Date: Thu, 9 Mar 2017 17:38:56 +1100 Subject: [PATCH] Change 302 redirect to 301 Change "302 Found" response to "301 Moved Permanently", as "302 Found" is meant for temporary redirects. Was asked to do so in this comment: https://github.com/pi-hole/pi-hole/pull/1297#issuecomment-284335421 --- advanced/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/index.php b/advanced/index.php index 05b0811f..99f8c1f8 100644 --- a/advanced/index.php +++ b/advanced/index.php @@ -8,7 +8,7 @@ $serverName = escapeshellcmd($_SERVER['SERVER_NAME']); // Let's be nice and redirect them. if ($serverName === 'pi.hole') { - header('HTTP/1.1 302 Found'); + header('HTTP/1.1 301 Moved Permanently'); header("Location: /admin/"); }