RewriteRule ^brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html 到 brand\.php\?id=$1 [QSA,L]范围内的内容修改
你用的是Ecshop,修改方法如下:以下要更改的所有文件均相对于安装路径
data/config.php
修改$admin_dir路径为你的后台目录名
其他文件,查找文件中的字串"admin/"或"admin"修改为$GLOBALS['admin_dir']连接,表示语言'LANG'的及编译路径的'complile/admin'可以不用改
admin/index.php
admin/database.php
admin/get_password.php
admin/goods.php
admin/check_file_priv.php
查找$dir[]='admin'
改为$dir[]=$GLOBALS['admin_dir']
查找$dir_subdir['temp'][] = 'temp/compiled/admin'
改为$dir_subdir['temp'][] = 'temp/compiled/' . $GLOBALS['admin_dir']
查找$tpl_dirs[] = 'temp/compiled/admin'
改为$tpl_dirs[] = 'temp/compiled/' . $GLOBALS['admin_dir']
includes/lib_main.php
includes/cls_ecshop.php
查找
$curr = strpos(PHP_SELF, 'admin/') !== false ?
preg_replace('/(.*)(admin)(\/?)(.)*/i', '\1', dirname(PHP_SELF)) :
dirname(PHP_SELF)
改为
$curr = strpos(PHP_SELF, $GLOBALS['admin_dir'] . '/') !== false ?
preg_replace('/(.*)(' . $GLOBALS['admin_dir'] . ')(\/?)(.)*/i', '\1', dirname(PHP_SELF)) :
dirname(PHP_SELF)
admin/includes/init.php
查找:
define('ROOT_PATH', str_replace('admin/includes/init.php', '', str_replace('\\', '/', __FILE__)))
修改为:
define('ROOT_PATH', str_replace('你的后台目录名/includes/init.php', '', str_replace('\\', '/', __FILE__)))
quotation.php
robots.txt
api/client/includes/lib_api.php
bbs/uc_server/control/admin/frame.php
查找'ECSHOP' =>'admin/index.php',
改为'ECSHOP' =>'你的后台目录名字/index.php',
admin/picture_batch.php
你也可以看官方论坛的帮助文档。
欢迎分享,转载请注明来源:夏雨云
评论列表(0条)