From: vincent@cubedesigners.com Date: Fri, 5 Jun 2015 15:28:37 +0000 (+0000) Subject: Improve temporary redirection X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=aeaf335844980bad811b6662674d71fa68d67e72;p=cubedesigners-v7.git Improve temporary redirection --- diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index 1eaa6c4..9da70f0 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -137,6 +137,11 @@ class Bootstrap extends CubeIT_Bootstrap { return $res; } + if ($_SERVER['HTTP_HOST'] == 'www.cubedesigners.com' && !in_array('en', $this->getAppLocales())) { + $url = 'http://www.cubedesigners.fr' . $_SERVER['REQUEST_URI']; + return $url; + } + $path = trim($req->getPathInfo(), '/ '); $e = explode('/', $path); $locale = array_shift($e);