// norm

parent eee3ba3d
......@@ -418,16 +418,17 @@ class ShopCore extends ObjectModel
if (count($params))
$url .= '?'.http_build_query($params);
}
$redirect_type = Configuration::get('PS_CANONICAL_REDIRECT');
if ($redirect_type != 0) {
if ($redirect_type != 0)
{
$redirect_code = ($redirect_type == 1 ? '302' : '301');
header('HTTP/1.0 '.$redirect_code.' Moved');
header('location: http://'.$url);
exit;
} else {
$shop = $default_shop;
}
else
$shop = $default_shop;
}
elseif (defined('_PS_ADMIN_DIR_') && empty($shop->physical_uri))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment