I want to make a "shop online" link on the B2B Magento shop product page (http://b2b.com/product1/) to redirect visitors to the B2C shop product page like: http://b2c.com/product1/
I only know that <?php echo $_product->getProductUrl() ?>
is calling http://b2b.com/product1/ But how to call a dynamic URL key in the /product/view.phtml, so then in the URL structure only the domain is changed from b2b.com to b2c.com but the product key will stay the same according to which product is being viewed?