通过phpcms的多站点功能给公司制作中英文网站。
如图添加新站点成功。
点击网站首页,英文站点首页显示的任然是默认站点首页的内容。
根据网络查询在 caches\configs\route.php中添加
'en.localhost:89'=>array('m'=>'content', 'c'=>'index', 'a'=>'init','data'=>array('siteid'=>'2')),
仍然不成功。
修改为:
'en.localhost:89'=>array('m'=>'content', 'c'=>'index', 'a'=>'init','data'=>array('GET'=>array('siteid'=>2))),
即可。