ShopNC B2B2C最新版 隐藏SHOP和去除shop方法

方法一:shopwwi.com运维提供
这个方法我想大家都知道!就是传统的官方所教导的方法!就是域名绑定目录法!shoshopwwi.com运维提供pwwi.com运维提供
1.将www.shopwwi.com绑定根目录下的shop目录!shopwwi.com运维提供shopwwi.com运维提供
2.根目录可以用根域名shopwwi.com绑定!shopshshopwwi.com运维提供opwwi.com运维提供wwi.com运维提供
3.其他文件夹也绑定*.shopwwi.com!前缀自己想!sshopwwi.com运维提供hopwwi.com运维提供
4.绑定完目录之后!然后修改config.ini.php里的对应绑定域名shopwwi.com运维提供shopwwi.com运维提供
此为方法一:有点确实去除了shop!但是当用二级域名访问店铺的时候!依然后缀会出现shop!无解!sshopwwi.com运维提供hopwwi.com运维提供
注意:shopwwi.com换成自己的域名!不要挑刺!shopwwi.com运维提供
shopwwi.com运维提供
方法二:
shopwwi.com运维提供
此方法修改起来较费时费力!因此我尽量说的详细一点!shopwwi.com运维提供
shopwwi.com运维提供
为了能够使www域名能够够完善的使用!请按以下步骤一步一步来!shopwwi.com运维提供
shopwwi.com运维提供
1.转移shop下目录文件至根目录shopwwi.com运维提供
2.修改config.ini.php里的shop绑定域名更改为无shop目录shopwwi.com运维提供
3.将原始根目录的index.php更改为main.php文件名自己定!并修改index.php代码(index.php=main.php的情况下按以下修改!你改成啥main.php就是啥):shopwwi.com运维提供

  1. $site_url = strtolower(‘http://’.$_SERVER[‘HTTP_HOST’].substr($_SERVER[‘PHP_SELF’], 0, strrpos($_SERVER[‘PHP_SELF’], ‘/index.php’)).’/shop/index.php’);
  2. @header(‘Location: ‘.$site_url);

复制代码

修改为shopwwi.com运维提供

  1. $site_url = strtolower(‘http://’.$_SERVER[‘HTTP_HOST’].substr($_SERVER[‘PHP_SELF’], 0, strrpos($_SERVER[‘PHP_SELF’], ‘/main.php’)).’/index.php’);
  2. @header(‘Location: ‘.$site_url);

复制代码

4.打开shop下的index.php也就是现在转移到跟目录下的index.php找到以下代码

  1. if (!@include(dirname(dirname(__FILE__)).’/global.php’)) exit(‘global.php isn\’t exists!’);

复制代码

修改为

  1. if (!@include(dirname(__FILE__)).’/global.php’) exit(‘global.php isn\’t exists!’);

复制代码


5.是不是觉得很简单 想问我还有没有其他操作的 我想说的是 没了!就这些
shop