douan6931 2014-07-23 12:37
浏览 231

替换部分URL onclick和重定向

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/'

  • 写回答

4条回答 默认 最新

  • douji5397 2014-07-23 12:45
    关注

    Simply use the IF statement, if the button is clicked, the URLs will be changed! Each url leads to a page in different language. If I got you right

    评论

报告相同问题?

悬赏问题

  • ¥15 使用phpstudy在云服务器上搭建个人网站
  • ¥15 应该如何判断含间隙的曲柄摇杆机构,轴与轴承是否发生了碰撞?
  • ¥15 vue3+express部署到nginx
  • ¥20 搭建pt1000三线制高精度测温电路
  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况
  • ¥15 画两个图 python或R
  • ¥15 在线请求openmv与pixhawk 实现实时目标跟踪的具体通讯方法
  • ¥15 八路抢答器设计出现故障
  • ¥15 opencv 无法读取视频
  • ¥15 按键修改电子时钟,C51单片机