diff --git a/core/control/Director.php b/core/control/Director.php index ed260b08a..9951acdc6 100755 --- a/core/control/Director.php +++ b/core/control/Director.php @@ -662,7 +662,7 @@ class Director { */ static function forceWWW() { if(!Director::isDev() && !Director::isTest() && strpos($_SERVER['HTTP_HOST'], 'www') !== 0) { - str_replace(Director::protocol(), Director::protocol() . 'www.', Director::absoluteURL($_SERVER['REQUEST_URI'])); + $destURL = str_replace(Director::protocol(), Director::protocol() . 'www.', Director::absoluteURL($_SERVER['REQUEST_URI'])); header("Location: $destURL", true, 301); die("

Your browser is not accepting header redirects

Please click here");