标签:
Ecstore启用www.ecstore.com和m.ecstore.com域名
修改config/mapper.php if($_SERVER[‘SERVER_NAME‘]==‘www.ecstore.com‘) { $urlmap = array( ‘/shopadmin‘=> array(‘app‘=>‘desktop‘), ‘/‘=> array(‘app‘=>‘site‘), ‘/wap‘=> array(‘app‘=>‘wap‘), ); }else{ $urlmap = array( ‘/‘=> array(‘app‘=>‘wap‘), ); }
修改文件app/base/kernel.php,在143行左右 if($_SERVER[‘SERVER_NAME‘]==‘m.ecstore.com‘) { // 检查是否手机端 if(base_mobiledetect::is_mobile()){ base_mobiledetect::select_terminator($part,$_GET[‘ignore_ua_check‘],self::$url_app_map); } }
Ecstore启用www.ecstore.com和m.ecstore.com域名
标签:
原文地址:http://www.cnblogs.com/jimingsong/p/4428900.html