I have tried to look for answers here and on google, but maybe I'm not using the correct search terms... I just can't find it. Hope anyone can help me with this.
On a bi-lingual
shop I want a person to be redirected to the same product on a different domain/url
, when clicking the english flag
button.
www.mydomain**.nl/a1**/product1.html
is the starting point. Clicking on the english flag should grab the domain and category and change this and go to the newly created url:
www.mydomain**.com/a2**/product1.html
then
www.mydomain**.nl/b1**/product1.html
,becomes after clicking the 'english flag' button:
www.mydomain**.com/b2**/product1.html
etc.
There are about 30 different pages to be redicted like this, all with the same 'english flag' button.
IF part of url is '.nl/schoenen/' THEN change and go to '.com/shoes/'
IF part of url is '.nl/jassen/' THEN change and go to '.com/jackets/'