Warning: date(): Invalid date.timezone value 'HKT', we selected the timezone 'UTC' for now. in /home/mrgcom/public_html/catalog/controller/common/footer.php on line 48 phpcms手機門戶的設置

The One 专一

phpcms手機門戶的設置

wap的域名綁定到站點IP上,如 http://wap.wsj.demo.com  

網上的話直接添加子域名解析到IP上就好了.

我這邊的本地是XAMPP. 

hosts添加:127.0.0.1 wap.wsj.demo.com

apache httpd-vhosts.conf 虛擬域名添加: 

<VirtualHost *:80>
DocumentRoot "D:/xampp/htdocs/zk/wsj"
ServerName wap.wsj.demo.com
</VirtualHost>

重啟下apache

然後PHPCMS後台,模塊-手機門戶,開啟手機門戶,填寫域名:http://wap.wsj.demo.com/ 記得域名要有 / 結束!  

最後配置下router, caches/config/router.php 添加:

'wap.wsj.demo.com'=>array('m'=>'wap', 'c'=>'index', 'a'=>'init','data'=>array('GET'=>array('siteid'=>1))),

這樣就完成了手機門戶的配置,訪問域名http://wap.wsj.demo.com  會到wap的頁面上.

模板的修改在wap文件夾下.

Powered By 爱你若晴天
身体健康 © 2017 粤ICP备14081548号-1

Article

Shopping

Search

Me