// small fix
This commit is contained in:
@@ -340,10 +340,10 @@ class ShopCore extends ObjectModel
|
|||||||
{
|
{
|
||||||
// extract url parameters
|
// extract url parameters
|
||||||
$request_uri = substr($request_uri, strlen($found_uri));
|
$request_uri = substr($request_uri, strlen($found_uri));
|
||||||
|
$url = str_replace('//', '/', $row['domain'].$row['uri'].$request_uri);
|
||||||
header('HTTP/1.1 301 Moved Permanently');
|
header('HTTP/1.1 301 Moved Permanently');
|
||||||
header('Cache-Control: no-cache');
|
header('Cache-Control: no-cache');
|
||||||
header('location: http://'.$row['domain'].$row['uri'].$request_uri);
|
header('location: http://'.$url);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -387,6 +387,7 @@ class ShopCore extends ObjectModel
|
|||||||
else
|
else
|
||||||
$url = 'http://'.$uri;
|
$url = 'http://'.$uri;
|
||||||
}
|
}
|
||||||
|
die($url);
|
||||||
header('location: '.$url);
|
header('location: '.$url);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user