[-] FO : fix #PSFV-348 for ce http page to remain http

This commit is contained in:
lLefevre
2012-01-09 08:29:21 +00:00
parent 3923ac05ee
commit e911aab7f0
+6
View File
@@ -103,6 +103,12 @@ class FrontControllerCore extends Controller
header('Location: '.Tools::getShopDomainSsl(true).$_SERVER['REQUEST_URI']);
exit();
}
else if (Configuration::get('PS_SSL_ENABLED') AND Tools::usingSecureMode() AND !($this->ssl))
{
header('HTTP/1.1 301 Moved Permanently');
header('Location: '.Tools::getShopDomain(true).$_SERVER['REQUEST_URI']);
exit();
}
if ($this->ajax)
{