// fix redirection
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15604 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
fd32dcd77e
commit
8398c73e12
1 file changed
+9
-7
@@ -281,14 +281,16 @@ class ShopCore extends ObjectModel
|
|||||||
$main_uri = $row['uri'];
|
$main_uri = $row['uri'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (isset($main_uri))
|
||||||
|
{
|
||||||
|
// extract url parameters
|
||||||
|
$request_uri = substr($request_uri, strlen($found_uri));
|
||||||
|
|
||||||
// extract url parameters
|
header('HTTP/1.1 301 Moved Permanently');
|
||||||
$request_uri = substr($request_uri, strlen($found_uri));
|
header('Cache-Control: no-cache');
|
||||||
|
header('location: http://'.$row['domain'].$main_uri.$request_uri);
|
||||||
header('HTTP/1.1 301 Moved Permanently');
|
exit;
|
||||||
header('Cache-Control: no-cache');
|
}
|
||||||
header('location: http://'.$row['domain'].$main_uri.$request_uri);
|
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user