]> _ Git - cubedesigners-v7.git/commitdiff
Improve temporary redirection
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 5 Jun 2015 15:28:37 +0000 (15:28 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 5 Jun 2015 15:28:37 +0000 (15:28 +0000)
framework/application/Bootstrap.php

index 1eaa6c4f762edfb67187d804edde6416921581e7..9da70f02802a503d501a7ece51b136d02f1c9ba5 100644 (file)
@@ -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);