请求很简单,但是我找不到实现它的方法。我有如下链接:
httр://mysite.com/index.php?lang=EN
httр://mysite.com/index.php?route=add&lang=EN
httр://mysite.com/index.php?route=view&lang=EN
等等。我想要的是创建 301 重定向,以便将 EN 更改为 GB。例如,如果客户打开httр://mysite.com/index.php?route=add&lang=EN
,他应该被重定向到httр://mysite.com/index.php?route=add&lang=GB
。
我已经搜索了几天,但未能找到有效的解决方案。请帮忙。