I would like to make an invisible redirection from a store to a different one (I set up multistore)
into my module, for now I’m using this snippet but it shows GET parameter:
echo '<p><a href="' . Mage::getUrl() . '?___store=' . $store . '">pick up this restaurant</a></p>'
How can I achieve this ?
Thx
Using a POST form means that when using the back button customers might encounter an annoying “This page needs to be refreshed” message in their browser. Another way would be to redirect from
www.example.com/?___store=1towww.example.comduring some early event, say, during controller pre-dispatch. Only redirect if there is a___storeparameter.A better way would be to have different domains for each store. That avoids the
___storeparameter altogether and provides definite feedback to the customer that they are on the correct site.