1. 站点无法访问
首先这种问题一般的话就是配置文件为修改,cms一般域名都是写死在哦配置文件中的修改即可解决。
1. /caches/configs/database.php
'default' => array (
'hostname' => '127.0.0.1', // 数据库连接
'database' => '233', // 数据库名
'username' => '233', // 用户
'password' => '233', // 密码
'tablepre' => 'v9_',
'charset' => 'utf8',
'type' => 'mysqli',
'port' => '3306',
'debug' => true,
'pconnect' => 0,
'autoconnect' => 0
),
);
2. /caches/configs/system.php
'upload_path' => PHPCMS_PATH.'uploadfile/', //附件相关配置
'upload_url' => 'http://www.baidu.com/uploadfile/', //附件路径
'attachment_stat' => '1',//是否记录附件使用状态 0 统计 1 统计, 注意: 本功能会加重服务器负担
'js_path' => 'http://www.baidu.com/statics/js/', //CDN JS
'css_path' => 'http://www.baidu.com/statics/css/', //CDN CSS
'img_path' => 'http://www.baidu.com/statics/images/', //CDN img
'app_path' => '//www.baidu.com/',//动态域名配置地址
'phpsso_api_url' => 'http://www.baidu.com/phpsso_server', //接口地址
'qq_callback' => 'http://www.baidu.com/index.php?m=member&c=index&a=public_qq_loginnew', //QQ号码登录
2. 还需要更改下数据库里的一些配置和连接
v9_category 这个表里有个 url 字段这个必改
v9_news 这个表里有个 url 字段这个必改
其他的你需要导出 sql 数据 用编辑器替换查询吧,到不会影响网站的运行
因为文章详情直接存储域名图片文本,,请批量替换
PS: 如果哪位好心人还发现了别的欢迎下方留言或者私聊我