PHPCMS完全更新URL攻略
2017-05-17 本文已影响0人
薛子育
PHPCMS在修改域名后,需要修改一些设置才能让网站浏览正常。
该过程实现虽然不复杂,但是有一步没有执行,会导致更新失败。
步骤如下:
在站点目录找到/caches/configs/system.php文件
通过notepad++打开,修改里面所有原域名为新域名。

登录后台管理地址--设置--站点管理--站点域名部分 修改为新的域名

点击更新缓存,等待缓存更改完毕

点击内容--附件管理-附件地址替换
把原附件地址更换为新的地址,点击内容-批量更新URL-开始更新。此处不做,自己原来发的文章会找不到图片,如下图:

点击内容-批量更新URL-开始更新

点击内容-->管理栏目-->更新栏目缓存

生成内容页-生成栏目页-生成首页

完成