标签:
1.转移shop下目录文件至根目录;
2.修改config.ini.php里的shop绑定域名更改为无shop目录;
3.将原始根目录的index.php更改为main.php文件名自己定!并修改index.php代码(index.php=main.php的情况下按以下修改!你改成啥main.php就是啥):
$site_url = strtolower(‘http://‘.$_SERVER[‘HTTP_HOST‘].substr($_SERVER[‘PHP_SELF‘], 0, strrpos($_SERVER[‘PHP_SELF‘], ‘/index.php‘)).‘/shop/index.php‘); @header(‘Location: ‘.$site_url);
修改为:
$site_url = strtolower(‘http://‘.$_SERVER[‘HTTP_HOST‘].substr($_SERVER[‘PHP_SELF‘], 0, strrpos($_SERVER[‘PHP_SELF‘], ‘/main.php‘)).‘/index.php‘); @header(‘Location: ‘.$site_url);
4.打开shop下的index.php也就是现在转移到跟目录下的index.php找到以下代码
if (!@include(dirname(dirname(__FILE__)).‘/global.php‘)) exit(‘global.php isn\‘t exists!‘);
修改为:
if (!@include(dirname(__FILE__)).‘/global.php‘) exit(‘global.php isn\‘t exists!‘);
标签:
原文地址:http://www.cnblogs.com/sunbeidan/p/4878153.html