We have successfully setup the multi-store setting with 2 urls to one store. One store, 2 urls for that store (one main url) using the standard Prestashop 1.5 multistore capability.
The issue we have is that when we test the secondary url (www.biometricdirect.net.) redirect it shows as 302, and the SEO company wants it as 301.
I've reviewed the logic in /classes/shop/shop.php (about line 333) and its suggests 301 redirect, but is actually recorded as 302.
// If an URL was found but is not the main URL, redirect to main URL
if ($id_shop && !$is_main_uri)
{
foreach ($results as $row)
{
if ($row['id_shop'] == $id_shop && $row['main'])
{
// extract url parameters
$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('Cache-Control: no-cache');
header('location: http://'.$url);
exit;
}
}
}
I've seen the suggested hacks in the .htaccess for manual redirects, but was wondering is there is a bit of code logic where the multistore secondary urls could be flagged as 301 redirects (rather than the default 302)?