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 虚拟机打包apk出现错误
  • ¥30 最小化遗憾贪心算法上界
  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 逻辑谓词和消解原理的运用
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝