帝国CMS7.2,其他版本也可以参考此步骤。
1,操作之前,做一个全站的快照备份,并备注好说明。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
2,在帝国CMS后台,把当前模板组导出来,类似文件e1562662986.temp,然后用编辑器打开,将涉及到本站域名的http批量修改为https,然后再导入覆盖文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
3,找到当前模板下的css,js文件,用编辑器打开,将涉及到本站域名的http批量修改为https文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
4,在友情链接表phome_enewslink中,将涉及到本站域名的http批量修改为https文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
5,内容关键字表phome_enewskey中,将涉及到本站域名的http批量修改为https文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
6,phome_ecms_news表中,检查titlepic字段值,将涉及到本站域名的http批量修改为https文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
7,phome_ecms_news_data_1~N表中,将涉及到本站域名的http批量修改为https(文章量较多时,一般都有很多文章中写死的内链接)文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
8,phome_enewsclass表,检查wburl字段值,将涉及到本站域名的http批量修改为https文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
9,phome_enewsclassadd表,检查classtext字段值,,将涉及到本站域名的http批量修改为https文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
10,再仔细想想,还有没有其他自定义字段中,可能涉及到本站域名的值文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
11,网站后台 → 系统参数设置 → 网站地址,http 修改为 https文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
12,网站后台 → 数据更新 → 更新信息页地址,执行全站内容页URL的更新,并检查数据库中URL更新情况文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
13,web服务器配置中启用https文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
14,找到/e/class/connect.php文件,搜索:function eReturnDomain
把return 'http://'.$domain;
改为return 'https://'.$domain;
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
15,全站首页、栏目页、文章页html生成文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
16,web服务器配置好http 301重定向到 https文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
17,404文件中的地址,把 http 批量修改为 https文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
18,sitemap中的地址,把 http 批量修改为 https(没有sitemap就新做,并提交给百度)文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
19,全站检查http和https访问情况,http状态码返回情况,浏览器地址栏是否都显示绿锁文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
20,百度后台提交https认证文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html
21,联系友情链接方,更改本站链接为https文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/17690.html