From b0105e8948607c5f47ca381d0ef4ea52808bbeec Mon Sep 17 00:00:00 2001 From: rGaillard Date: Wed, 19 Sep 2012 17:34:24 +0000 Subject: [PATCH] // small fix --- classes/shop/Shop.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/shop/Shop.php b/classes/shop/Shop.php index 7f6e458ee..514b6e135 100644 --- a/classes/shop/Shop.php +++ b/classes/shop/Shop.php @@ -340,10 +340,10 @@ class ShopCore extends ObjectModel { // 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://'.$row['domain'].$row['uri'].$request_uri); + header('location: http://'.$url); exit; } } @@ -387,6 +387,7 @@ class ShopCore extends ObjectModel else $url = 'http://'.$uri; } + die($url); header('location: '.$url); exit; }