我只在家里使用多种语言的magento有问题。
如果是这样的话:
url/pt/index.php or url/pt/home
如果remove index.php
或home
指向默认语言
服务器没有定向,因为我认为它没有生成url已经直接定向。
所以我想试试htaccess是:
url/pt redirect to url/pt/home
你可以使用这个规则作为你的第一条规则就在RewriteEngine On
行下面:
RewriteCond %{THE_REQUEST} /pt(/index.php)?[s?] [NC]
RewriteRule ^ /pt/home [L,R=301]
RewriteEngine On
RewriteCond %{THE_REQUEST} (/index.php)?[s?] [NC]
RewriteRule ^ /home [L,R=301]