Replace the two occurances of
$this->_redirectaddr .= "/".$matches[2];
with
$this->_redirectaddr .= substr($url, 0, strrpos($url, '/') + 1). $matches[2];
Logged In: NO
The same thing can be achieved by replacing the line(s) above with
$this->_redirectaddr .= dirname($URI_PARTS['path']).$matches[2];
Sorry, I forgot a slash in my post. Here it is:
$this->_redirectaddr .= dirname($URI_PARTS['path'])."/".$matches[2];
Logged In: YES user_id=1600577
please visit this site it doesn't working here http://www.canadiantire.ca/assortments/product_detail.jsp?FOLDER%3C%3Efolder_id=2534374303517486&ASSORTMENT%3C%3East_id=1408474396670271&bmUID=1158729866318&PRODUCT%3C%3Eprd_id=845524443279652&assortment=primary&fromSearch=true
Log in to post a comment.
Logged In: NO
The same thing can be achieved by replacing the line(s)
above with
$this->_redirectaddr .= dirname($URI_PARTS['path']).$matches[2];
Logged In: NO
Sorry, I forgot a slash in my post. Here it is:
$this->_redirectaddr .=
dirname($URI_PARTS['path'])."/".$matches[2];
Logged In: YES
user_id=1600577
please visit this site
it doesn't working here
http://www.canadiantire.ca/assortments/product_detail.jsp?FOLDER%3C%3Efolder_id=2534374303517486&ASSORTMENT%3C%3East_id=1408474396670271&bmUID=1158729866318&PRODUCT%3C%3Eprd_id=845524443279652&assortment=primary&fromSearch=true