联系电话:0755-27515592
最新动态:

zencart教程

ZenCart不同域名解析设置方法

点击数:12102015-08-03 16:20:06 来源: 外贸网站建设,深圳外贸网站建设,深圳网站建设,外贸商城网站制作-亿恩科技

新闻摘要:在includes/configure.php文件头部注释下面添加 $severname=preg_replace(/(www.)|(..+)/,,$_SERVER[SERVER_NAME]);//添加正则表达式去掉域名中.号的前面部分和.号的后面部分如:www.waimaole.com去掉后变成waimaole define(H

在includes/configure.php文件头部注释下面添加

$severname=preg_replace(’/(www.)|(..+) /’,”,$_SERVER['SERVER_NAME']);     //添加正则表达式去掉域名中”.”号的前面部分和”.”号的后面部分 如:www.waimaole.com   去掉后变成waimaole
define(’HTTP_SERVER’, ‘http://’ . $_SERVER['SERVER_NAME']);              //获取域名名称
define(’HTTPS_SERVER’, ‘https://’ . $_SERVER['SERVER_NAME']);          //获取域名名称

修改后的文件为:


// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
$severname=preg_replace(’/(www.)|(..+)/’,”,$_SERVER['SERVER_NAME']);
define(’HTTP_SERVER’, ‘http://’ . $_SERVER['SERVER_NAME']);
define(’HTTPS_SERVER’, ‘https://’ . $_SERVER['SERVER_NAME']);

// Use secure webserver for checkout procedure?
define(’ENABLE_SSL’, ‘false’);

// NOTE: be sure to leave the trailing ‘/’ at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace … (ie: under the public_html or httpdocs folder)
define(’DIR_WS_CATALOG’, ‘/’);
define(’DIR_WS_HTTPS_CATALOG’, ‘/’);

define(’DIR_WS_IMAGES’, ‘images/’);
define(’DIR_WS_INCLUDES’, ‘includes/’);
define(’DIR_WS_FUNCTIONS’, DIR_WS_INCLUDES . ‘functions/’);
define(’DIR_WS_CLASSES’, DIR_WS_INCLUDES . ‘classes/’);
define(’DIR_WS_MODULES’, DIR_WS_INCLUDES . ‘modules/’);
define(’DIR_WS_LANGUAGES’, DIR_WS_INCLUDES . ‘languages/’);
define(’DIR_WS_DOWNLOAD_PUBLIC’, DIR_WS_CATALOG . ‘pub/’);
define(’DIR_WS_TEMPLATES’, DIR_WS_INCLUDES . ‘templates/’);

define(’DIR_WS_PHPBB’, ‘/’);

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define(’DIR_FS_CATALOG’, ‘/vhost3/’.$severname.’.com/’);      //网站存放的地址

define(’DIR_FS_DOWNLOAD’, DIR_FS_CATALOG . ‘download/’);
define(’DIR_FS_DOWNLOAD_PUBLIC’, DIR_FS_CATALOG . ‘pub/’);
define(’DIR_WS_UPLOADS’, DIR_WS_IMAGES . ‘uploads/’);
define(’DIR_FS_UPLOADS’, DIR_FS_CATALOG . DIR_WS_UPLOADS);
define(’DIR_FS_EMAIL_TEMPLATES’, DIR_FS_CATALOG . ‘email/’);

// define our database connection
define(’DB_TYPE’, ‘mysql’);
define(’DB_PREFIX’, ‘zen_’);
define(’DB_SERVER’, ‘localhost’);
define(’DB_SERVER_USERNAME’, ‘mysql用户名’);
define(’DB_SERVER_PASSWORD’, ‘mysql密码’);
define(’DB_DATABASE’, $severname);   //以正则表达式截取后的域名为数据名称
define(’USE_PCONNECT’, ‘false’);
define(’STORE_SESSIONS’, ‘db’);
// for STORE_SESSIONS, use ‘db’ for best support, or ” for file-based storage

// Th

【责任编辑:(Top) 返回页面顶端
贴心
全国7×24小时客服热线
安全
病毒杀除率高于99%
稳定
网站可用性高于99.9%
实力
服务68家上市企业及集团公司
亿恩科技手机站
关注亿恩科技微信

亿恩科技—企业信息化一站式服务专家


Copyright © 2008- 深圳市亿恩科技有限公司版权所有 粤ICP备15056041号

联系我们 | 常见问题 | 在线留言 | 支付方式 | 软件开发 | 我的观点 | 资质荣誉 | 服务流程