From 391848f79b2511931937304fa6a2771d72e3088a Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 14 Oct 2008 21:06:15 +0000 Subject: [PATCH] FEATURE #2951 simon_w: Use 301 redirect on Director::forceWWW() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64231 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/Director.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/control/Director.php b/core/control/Director.php index 510045200..f9b4f8044 100644 --- a/core/control/Director.php +++ b/core/control/Director.php @@ -527,7 +527,7 @@ class Director { $destURL = str_replace('http://', 'http://www.', Director::absoluteURL($_SERVER['REQUEST_URI'])); } - header("Location: $destURL"); + header("Location: $destURL", true, 301); die("

Your browser is not accepting header redirects

Please click here"); } }